Enum near_primitives::errors::InvalidAccessKeyError [−][src]
pub enum InvalidAccessKeyError {
AccessKeyNotFound {
account_id: AccountId,
public_key: PublicKey,
},
ReceiverMismatch {
tx_receiver: AccountId,
ak_receiver: String,
},
MethodNameMismatch {
method_name: String,
},
RequiresFullAccess,
NotEnoughAllowance {
account_id: AccountId,
public_key: PublicKey,
allowance: Balance,
cost: Balance,
},
DepositWithFunctionCall,
}Variants
AccessKeyNotFound
The access key identified by the public_key doesn’t exist for the account
ReceiverMismatch
Transaction receiver_id doesn’t match the access key receiver_id
MethodNameMismatch
Fields
method_name: StringTransaction method name isn’t allowed by the access key
RequiresFullAccess
Transaction requires a full permission access key.
NotEnoughAllowance
Access Key does not have enough allowance to cover transaction cost
DepositWithFunctionCall
Having a deposit with a function call action is not allowed with a function call access key.
Trait Implementations
impl BorshDeserialize for InvalidAccessKeyError where
AccountId: BorshDeserialize,
PublicKey: BorshDeserialize,
AccountId: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
PublicKey: BorshDeserialize,
Balance: BorshDeserialize,
Balance: BorshDeserialize,
impl BorshDeserialize for InvalidAccessKeyError where
AccountId: BorshDeserialize,
PublicKey: BorshDeserialize,
AccountId: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
PublicKey: BorshDeserialize,
Balance: BorshDeserialize,
Balance: BorshDeserialize,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for InvalidAccessKeyError
impl Send for InvalidAccessKeyError
impl Sync for InvalidAccessKeyError
impl Unpin for InvalidAccessKeyError
impl UnwindSafe for InvalidAccessKeyError
Blanket Implementations
Mutably borrows from an owned value. Read more