Struct near_primitives_core::account::AccessKey[][src]

pub struct AccessKey {
    pub nonce: Nonce,
    pub permission: AccessKeyPermission,
}

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

impl AccessKey[src]

pub fn full_access() -> Self[src]

Trait Implementations

impl BorshDeserialize for AccessKey where
    Nonce: BorshDeserialize,
    AccessKeyPermission: BorshDeserialize
[src]

impl BorshSerialize for AccessKey where
    Nonce: BorshSerialize,
    AccessKeyPermission: BorshSerialize
[src]

impl Clone for AccessKey[src]

impl Debug for AccessKey[src]

impl<'de> Deserialize<'de> for AccessKey[src]

impl Eq for AccessKey[src]

impl Hash for AccessKey[src]

impl PartialEq<AccessKey> for AccessKey[src]

impl Serialize for AccessKey[src]

impl StructuralEq for AccessKey[src]

impl StructuralPartialEq for AccessKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.