[−][src]Struct near_bindgen::Promise
Fields
subtype: PromiseSubtype
should_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]
self,
method_name: Vec<u8>,
arguments: Vec<u8>,
amount: Balance,
gas: Gas
) -> Self
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]
self,
public_key: PublicKey,
allowance: Balance,
receiver_id: AccountId,
method_names: Vec<u8>
) -> Self
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,