pub enum AccessKeyPermissionView {
FullAccess,
FunctionCall {
allowance: Option<NearToken>,
receiver_id: AccountId,
method_names: Vec<String>,
},
GasKeyFunctionCall {
balance: NearToken,
num_nonces: u16,
allowance: Option<NearToken>,
receiver_id: AccountId,
method_names: Vec<String>,
},
GasKeyFullAccess {
balance: NearToken,
num_nonces: u16,
},
}Expand description
Access key permission from RPC.
Variants§
FullAccess
Full access.
FunctionCall
Function call access with restrictions.
Fields
GasKeyFunctionCall
Gas key with function call access.
Fields
GasKeyFullAccess
Gas key with full access.
Trait Implementations§
Source§impl Clone for AccessKeyPermissionView
impl Clone for AccessKeyPermissionView
Source§fn clone(&self) -> AccessKeyPermissionView
fn clone(&self) -> AccessKeyPermissionView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessKeyPermissionView
impl Debug for AccessKeyPermissionView
Source§impl<'de> Deserialize<'de> for AccessKeyPermissionView
impl<'de> Deserialize<'de> for AccessKeyPermissionView
Source§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 Freeze for AccessKeyPermissionView
impl RefUnwindSafe for AccessKeyPermissionView
impl Send for AccessKeyPermissionView
impl Sync for AccessKeyPermissionView
impl Unpin for AccessKeyPermissionView
impl UnsafeUnpin for AccessKeyPermissionView
impl UnwindSafe for AccessKeyPermissionView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more