Enum RpcQueryRequest

Source
pub enum RpcQueryRequest {
Show 24 variants ViewAccountByBlockId { account_id: AccountId, block_id: BlockId, request_type: ViewAccountByBlockIdRequestType, }, ViewCodeByBlockId { account_id: AccountId, block_id: BlockId, request_type: ViewCodeByBlockIdRequestType, }, ViewStateByBlockId { account_id: AccountId, block_id: BlockId, include_proof: Option<bool>, prefix_base64: StoreKey, request_type: ViewStateByBlockIdRequestType, }, ViewAccessKeyByBlockId { account_id: AccountId, block_id: BlockId, public_key: PublicKey, request_type: ViewAccessKeyByBlockIdRequestType, }, ViewAccessKeyListByBlockId { account_id: AccountId, block_id: BlockId, request_type: ViewAccessKeyListByBlockIdRequestType, }, CallFunctionByBlockId { account_id: AccountId, args_base64: FunctionArgs, block_id: BlockId, method_name: String, request_type: CallFunctionByBlockIdRequestType, }, ViewGlobalContractCodeByBlockId { block_id: BlockId, code_hash: CryptoHash, request_type: ViewGlobalContractCodeByBlockIdRequestType, }, ViewGlobalContractCodeByAccountIdByBlockId { account_id: AccountId, block_id: BlockId, request_type: ViewGlobalContractCodeByAccountIdByBlockIdRequestType, }, ViewAccountByFinality { account_id: AccountId, finality: Finality, request_type: ViewAccountByFinalityRequestType, }, ViewCodeByFinality { account_id: AccountId, finality: Finality, request_type: ViewCodeByFinalityRequestType, }, ViewStateByFinality { account_id: AccountId, finality: Finality, include_proof: Option<bool>, prefix_base64: StoreKey, request_type: ViewStateByFinalityRequestType, }, ViewAccessKeyByFinality { account_id: AccountId, finality: Finality, public_key: PublicKey, request_type: ViewAccessKeyByFinalityRequestType, }, ViewAccessKeyListByFinality { account_id: AccountId, finality: Finality, request_type: ViewAccessKeyListByFinalityRequestType, }, CallFunctionByFinality { account_id: AccountId, args_base64: FunctionArgs, finality: Finality, method_name: String, request_type: CallFunctionByFinalityRequestType, }, ViewGlobalContractCodeByFinality { code_hash: CryptoHash, finality: Finality, request_type: ViewGlobalContractCodeByFinalityRequestType, }, ViewGlobalContractCodeByAccountIdByFinality { account_id: AccountId, finality: Finality, request_type: ViewGlobalContractCodeByAccountIdByFinalityRequestType, }, ViewAccountBySyncCheckpoint { account_id: AccountId, request_type: ViewAccountBySyncCheckpointRequestType, sync_checkpoint: SyncCheckpoint, }, ViewCodeBySyncCheckpoint { account_id: AccountId, request_type: ViewCodeBySyncCheckpointRequestType, sync_checkpoint: SyncCheckpoint, }, ViewStateBySyncCheckpoint { account_id: AccountId, include_proof: Option<bool>, prefix_base64: StoreKey, request_type: ViewStateBySyncCheckpointRequestType, sync_checkpoint: SyncCheckpoint, }, ViewAccessKeyBySyncCheckpoint { account_id: AccountId, public_key: PublicKey, request_type: ViewAccessKeyBySyncCheckpointRequestType, sync_checkpoint: SyncCheckpoint, }, ViewAccessKeyListBySyncCheckpoint { account_id: AccountId, request_type: ViewAccessKeyListBySyncCheckpointRequestType, sync_checkpoint: SyncCheckpoint, }, CallFunctionBySyncCheckpoint { account_id: AccountId, args_base64: FunctionArgs, method_name: String, request_type: CallFunctionBySyncCheckpointRequestType, sync_checkpoint: SyncCheckpoint, }, ViewGlobalContractCodeBySyncCheckpoint { code_hash: CryptoHash, request_type: ViewGlobalContractCodeBySyncCheckpointRequestType, sync_checkpoint: SyncCheckpoint, }, ViewGlobalContractCodeByAccountIdBySyncCheckpoint { account_id: AccountId, request_type: ViewGlobalContractCodeByAccountIdBySyncCheckpointRequestType, sync_checkpoint: SyncCheckpoint, },
}
Expand description

RpcQueryRequest

JSON schema
{
 "title": "RpcQueryRequest",
 "type": "object",
 "oneOf": [
   {
     "title": "view_account_by_block_id",
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_account"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_code_by_block_id",
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_code"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_state_by_block_id",
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "prefix_base64",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "include_proof": {
             "type": "boolean"
           },
           "prefix_base64": {
             "$ref": "#/components/schemas/StoreKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_state"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_access_key_by_block_id",
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "public_key",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "public_key": {
             "$ref": "#/components/schemas/PublicKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_access_key_list_by_block_id",
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key_list"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "call_function_by_block_id",
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "args_base64",
           "method_name",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "args_base64": {
             "$ref": "#/components/schemas/FunctionArgs"
           },
           "method_name": {
             "type": "string"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "call_function"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_global_contract_code_by_block_id",
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "code_hash",
           "request_type"
         ],
         "properties": {
           "code_hash": {
             "$ref": "#/components/schemas/CryptoHash"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_global_contract_code_by_account_id_by_block_id",
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code_by_account_id"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_account_by_finality",
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_account"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_code_by_finality",
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_code"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_state_by_finality",
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "prefix_base64",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "include_proof": {
             "type": "boolean"
           },
           "prefix_base64": {
             "$ref": "#/components/schemas/StoreKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_state"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_access_key_by_finality",
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "public_key",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "public_key": {
             "$ref": "#/components/schemas/PublicKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_access_key_list_by_finality",
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key_list"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "call_function_by_finality",
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "args_base64",
           "method_name",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "args_base64": {
             "$ref": "#/components/schemas/FunctionArgs"
           },
           "method_name": {
             "type": "string"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "call_function"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_global_contract_code_by_finality",
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "code_hash",
           "request_type"
         ],
         "properties": {
           "code_hash": {
             "$ref": "#/components/schemas/CryptoHash"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_global_contract_code_by_account_id_by_finality",
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code_by_account_id"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_account_by_sync_checkpoint",
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_account"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_code_by_sync_checkpoint",
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_code"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_state_by_sync_checkpoint",
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "prefix_base64",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "include_proof": {
             "type": "boolean"
           },
           "prefix_base64": {
             "$ref": "#/components/schemas/StoreKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_state"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_access_key_by_sync_checkpoint",
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "public_key",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "public_key": {
             "$ref": "#/components/schemas/PublicKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_access_key_list_by_sync_checkpoint",
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key_list"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "call_function_by_sync_checkpoint",
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "args_base64",
           "method_name",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "args_base64": {
             "$ref": "#/components/schemas/FunctionArgs"
           },
           "method_name": {
             "type": "string"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "call_function"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_global_contract_code_by_sync_checkpoint",
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "code_hash",
           "request_type"
         ],
         "properties": {
           "code_hash": {
             "$ref": "#/components/schemas/CryptoHash"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code"
             ]
           }
         }
       }
     ]
   },
   {
     "title": "view_global_contract_code_by_account_id_by_sync_checkpoint",
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code_by_account_id"
             ]
           }
         }
       }
     ]
   }
 ]
}

Variants§

§

ViewAccountByBlockId

Fields

§account_id: AccountId
§block_id: BlockId
§

ViewCodeByBlockId

Fields

§account_id: AccountId
§block_id: BlockId
§

ViewStateByBlockId

Fields

§account_id: AccountId
§block_id: BlockId
§include_proof: Option<bool>
§prefix_base64: StoreKey
§

ViewAccessKeyByBlockId

Fields

§account_id: AccountId
§block_id: BlockId
§public_key: PublicKey
§

ViewAccessKeyListByBlockId

Fields

§account_id: AccountId
§block_id: BlockId
§

CallFunctionByBlockId

Fields

§account_id: AccountId
§args_base64: FunctionArgs
§block_id: BlockId
§method_name: String
§

ViewGlobalContractCodeByBlockId

§

ViewGlobalContractCodeByAccountIdByBlockId

§

ViewAccountByFinality

Fields

§account_id: AccountId
§finality: Finality
§

ViewCodeByFinality

Fields

§account_id: AccountId
§finality: Finality
§

ViewStateByFinality

Fields

§account_id: AccountId
§finality: Finality
§include_proof: Option<bool>
§prefix_base64: StoreKey
§

ViewAccessKeyByFinality

Fields

§account_id: AccountId
§finality: Finality
§public_key: PublicKey
§

ViewAccessKeyListByFinality

Fields

§account_id: AccountId
§finality: Finality
§

CallFunctionByFinality

Fields

§account_id: AccountId
§args_base64: FunctionArgs
§finality: Finality
§method_name: String
§

ViewGlobalContractCodeByFinality

§

ViewGlobalContractCodeByAccountIdByFinality

§

ViewAccountBySyncCheckpoint

Fields

§account_id: AccountId
§sync_checkpoint: SyncCheckpoint
§

ViewCodeBySyncCheckpoint

Fields

§account_id: AccountId
§sync_checkpoint: SyncCheckpoint
§

ViewStateBySyncCheckpoint

Fields

§account_id: AccountId
§include_proof: Option<bool>
§prefix_base64: StoreKey
§sync_checkpoint: SyncCheckpoint
§

ViewAccessKeyBySyncCheckpoint

Fields

§account_id: AccountId
§public_key: PublicKey
§sync_checkpoint: SyncCheckpoint
§

ViewAccessKeyListBySyncCheckpoint

Fields

§account_id: AccountId
§sync_checkpoint: SyncCheckpoint
§

CallFunctionBySyncCheckpoint

Fields

§account_id: AccountId
§args_base64: FunctionArgs
§method_name: String
§sync_checkpoint: SyncCheckpoint
§

ViewGlobalContractCodeBySyncCheckpoint

§

ViewGlobalContractCodeByAccountIdBySyncCheckpoint

Trait Implementations§

Source§

impl Clone for RpcQueryRequest

Source§

fn clone(&self) -> RpcQueryRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RpcQueryRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RpcQueryRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&RpcQueryRequest> for RpcQueryRequest

Source§

fn from(value: &RpcQueryRequest) -> Self

Converts to this type from the input type.
Source§

impl Serialize for RpcQueryRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,