Struct near_primitives_core::account::FunctionCallPermission[][src]

pub struct FunctionCallPermission {
    pub allowance: Option<Balance>,
    pub receiver_id: AccountId,
    pub method_names: Vec<String>,
}

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: AccountId

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

impl BorshDeserialize for FunctionCallPermission where
    Option<Balance>: BorshDeserialize,
    AccountId: BorshDeserialize,
    Vec<String>: BorshDeserialize
[src]

impl BorshSerialize for FunctionCallPermission where
    Option<Balance>: BorshSerialize,
    AccountId: BorshSerialize,
    Vec<String>: BorshSerialize
[src]

impl Clone for FunctionCallPermission[src]

impl Debug for FunctionCallPermission[src]

impl<'de> Deserialize<'de> for FunctionCallPermission[src]

impl Eq for FunctionCallPermission[src]

impl Hash for FunctionCallPermission[src]

impl PartialEq<FunctionCallPermission> for FunctionCallPermission[src]

impl Serialize for FunctionCallPermission[src]

impl StructuralEq for FunctionCallPermission[src]

impl StructuralPartialEq for FunctionCallPermission[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.