Struct near_workspaces::types::AccessKey
source · [−]pub struct AccessKey { /* private fields */ }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.
Implementations
sourceimpl AccessKey
impl AccessKey
pub fn full_access() -> Self
pub fn function_call_access(
receiver_id: &AccountId,
method_names: &[&str],
allowance: Option<Balance>
) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AccessKey
impl Send for AccessKey
impl Sync for AccessKey
impl Unpin for AccessKey
impl UnwindSafe for AccessKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more