pub struct FunctionCallPermission {
pub allowance: Option<Balance>,
pub receiver_id: String,
pub method_names: Vec<String>,
}
Expand description
Grants limited permission to make transactions with FunctionCallActions The permission can limit the allowed balance to be spent on the prepaid gas. It also restrict the account ID of the receiver for this function call. It also can restrict the method name for the allowed function calls.
Fields§
§allowance: Option<Balance>
Allowance is a balance limit to use by this access key to pay for function call gas and
transaction fees. When this access key is used, both account balance and the allowance is
decreased by the same value.
None
means unlimited allowance.
NOTE: To change or increase the allowance, the old access key needs to be deleted and a new
access key should be created.
receiver_id: String
The access key only allows transactions with the given receiver’s account id.
method_names: Vec<String>
A list of method names that can be used. The access key only allows transactions with the function call of one of the given method names. Empty list means any method name can be used.
Trait Implementations§
source§impl BorshDeserialize for FunctionCallPermission
impl BorshDeserialize for FunctionCallPermission
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl Clone for FunctionCallPermission
impl Clone for FunctionCallPermission
source§fn clone(&self) -> FunctionCallPermission
fn clone(&self) -> FunctionCallPermission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionCallPermission
impl Debug for FunctionCallPermission
source§impl<'de> Deserialize<'de> for FunctionCallPermission
impl<'de> Deserialize<'de> for FunctionCallPermission
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>,
source§impl Hash for FunctionCallPermission
impl Hash for FunctionCallPermission
source§impl PartialEq for FunctionCallPermission
impl PartialEq for FunctionCallPermission
source§impl Serialize for FunctionCallPermission
impl Serialize for FunctionCallPermission
impl Eq for FunctionCallPermission
impl StructuralPartialEq for FunctionCallPermission
Auto Trait Implementations§
impl Freeze for FunctionCallPermission
impl RefUnwindSafe for FunctionCallPermission
impl Send for FunctionCallPermission
impl Sync for FunctionCallPermission
impl Unpin for FunctionCallPermission
impl UnwindSafe for FunctionCallPermission
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)