[][src]Struct near_bindgen::Promise

pub struct Promise {
    pub subtype: PromiseSubtype,
    pub should_return: RefCell<bool>,
}

Fields

subtype: PromiseSubtypeshould_return: RefCell<bool>

Methods

impl Promise[src]

pub fn new(account_id: AccountId) -> Self[src]

pub fn create_account(self) -> Self[src]

pub fn deploy_contract(self, code: Vec<u8>) -> Self[src]

pub fn function_call(
    self,
    method_name: Vec<u8>,
    arguments: Vec<u8>,
    amount: Balance,
    gas: Gas
) -> Self
[src]

pub fn transfer(self, amount: Balance) -> Self[src]

pub fn stake(self, amount: Balance, public_key: PublicKey) -> Self[src]

pub fn add_full_access_key(self, public_key: PublicKey) -> Self[src]

pub fn add_access_key(
    self,
    public_key: PublicKey,
    allowance: Balance,
    receiver_id: AccountId,
    method_names: Vec<u8>
) -> Self
[src]

pub fn delete_key(self, public_key: PublicKey) -> Self[src]

pub fn delete_account(self, beneficiary_id: AccountId) -> Self[src]

pub fn and(self, other: Promise) -> Promise[src]

pub fn then(self, other: Promise) -> Promise[src]

pub fn as_return(self) -> Self[src]

Trait Implementations

impl Drop for Promise[src]

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

impl Clone for Promise[src]

impl Serialize for Promise[src]

Auto Trait Implementations

impl !Send for Promise

impl !Sync for Promise

impl Unpin for Promise

impl !UnwindSafe for Promise

impl !RefUnwindSafe for Promise

Blanket Implementations

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

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

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.

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

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

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