Struct near_primitives_core::account::AccessKey [−][src]
pub struct AccessKey {
pub nonce: Nonce,
pub permission: AccessKeyPermission,
}
Expand description
Access key provides limited access to an account. Each access key belongs to some account and
is identified by a unique (within the account) public key. One account may have large number of
access keys. Access keys allow to act on behalf of the account by restricting transactions
that can be issued.
account_id,public_key
is a key in the state
Fields
nonce: Nonce
The nonce for this access key. NOTE: In some cases the access key needs to be recreated. If the new access key reuses the same public key, the nonce of the new access key should be equal to the nonce of the old access key. It’s required to avoid replaying old transactions again.
permission: AccessKeyPermission
Defines permissions for this access key.
Implementations
Trait Implementations
impl BorshDeserialize for AccessKey where
Nonce: BorshDeserialize,
AccessKeyPermission: BorshDeserialize,
impl BorshDeserialize for AccessKey where
Nonce: BorshDeserialize,
AccessKeyPermission: BorshDeserialize,
impl BorshSerialize for AccessKey where
Nonce: BorshSerialize,
AccessKeyPermission: BorshSerialize,
impl BorshSerialize for AccessKey where
Nonce: BorshSerialize,
AccessKeyPermission: BorshSerialize,
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
Auto Trait Implementations
impl RefUnwindSafe for AccessKey
impl UnwindSafe for AccessKey
Blanket Implementations
Mutably borrows from an owned value. Read more