class_docstr: Record validators are a generic mechanism for checking the DHT records including:
    - Enforcing a data schema (e.g. checking content types)
    - Enforcing security requirements (e.g. allowing only the owner to update the record)
class_docstr_tok: ["Record","validators","are","a","generic","mechanism","for","checking","the","DHT","records","including",":","-","Enforcing","a","data","schema","(","e.g",".","checking","content","types",")","-","Enforcing","security","requirements","(","e.g",".","allowing","only","the","owner","to","update","the","record",")"]
docstr: Defines the order of applying this validator with respect to other validators.
  
  The validators are applied:
    - In order of increasing priority for signing a record
    - In order of decreasing priority for validating and stripping a record
docstr_tok: ["Defines","the","order","of","applying","this","validator","with","respect","to","other","validators",".","The","validators","are","applied",":","-","In","order","of","increasing","priority","for","signing","a","record","-","In","order","of","decreasing","priority","for","validating","and","stripping","a","record"]
code: def priority(self) -> int:
      """
      Defines the order of applying this validator with respect to other validators.
  
      The validators are applied:
        - In order of increasing priority for signing a record
        - In order of decreasing priority for validating and stripping a record
      """
  
      return 0
  
file_path: hivemind/hivemind/dht/validation.py
imports: import dataclasses
  from abc import ABC, abstractmethod
  from typing import Iterable
label_desc: Use image node_id 4 for calling the RecordValidatorBase obj's underlying member method code with example usage: obj.priority() and returns: int