Struct near_primitives_core::account::FunctionCallPermission [−][src]
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]
Option<Balance>: BorshDeserialize,
AccountId: BorshDeserialize,
Vec<String>: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for FunctionCallPermission where
Option<Balance>: BorshSerialize,
AccountId: BorshSerialize,
Vec<String>: BorshSerialize,
[src]
Option<Balance>: BorshSerialize,
AccountId: BorshSerialize,
Vec<String>: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for FunctionCallPermission
[src]
fn clone(&self) -> FunctionCallPermission
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FunctionCallPermission
[src]
impl<'de> Deserialize<'de> for FunctionCallPermission
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for FunctionCallPermission
[src]
impl Hash for FunctionCallPermission
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<FunctionCallPermission> for FunctionCallPermission
[src]
fn eq(&self, other: &FunctionCallPermission) -> bool
[src]
fn ne(&self, other: &FunctionCallPermission) -> bool
[src]
impl Serialize for FunctionCallPermission
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for FunctionCallPermission
[src]
impl StructuralPartialEq for FunctionCallPermission
[src]
Auto Trait Implementations
impl RefUnwindSafe for FunctionCallPermission
impl Send for FunctionCallPermission
impl Sync for FunctionCallPermission
impl Unpin for FunctionCallPermission
impl UnwindSafe for FunctionCallPermission
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,