Struct near_primitives_core::account::AccessKey [−][src]
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]
Nonce: BorshDeserialize,
AccessKeyPermission: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for AccessKey where
Nonce: BorshSerialize,
AccessKeyPermission: BorshSerialize,
[src]
Nonce: BorshSerialize,
AccessKeyPermission: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for AccessKey
[src]
impl Debug for AccessKey
[src]
impl<'de> Deserialize<'de> for AccessKey
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for AccessKey
[src]
impl Hash for AccessKey
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<AccessKey> for AccessKey
[src]
impl Serialize for AccessKey
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for AccessKey
[src]
impl StructuralPartialEq for AccessKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for AccessKey
[src]
impl Send for AccessKey
[src]
impl Sync for AccessKey
[src]
impl Unpin for AccessKey
[src]
impl UnwindSafe for AccessKey
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,