Struct near_workspaces::types::AccessKey
source · 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.
Fields§
§nonce: NonceThe 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: AccessKeyPermissionDefines permissions for this access key.
Implementations§
Trait Implementations§
source§impl From<AccessKeyView> for AccessKey
impl From<AccessKeyView> for AccessKey
source§fn from(access_key: AccessKeyView) -> Self
fn from(access_key: AccessKeyView) -> Self
Converts to this type from the input type.