[−][src]Enum near_sdk::PromiseOrValue
Variants
Promise(Promise)Trait Implementations
impl<T> BorshSchema for PromiseOrValue<T> where
T: BorshSchema, [src]
T: BorshSchema,
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)[src]
definitions: &mut HashMap<Declaration, Definition>
)
fn declaration() -> Declaration[src]
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)[src]
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn schema_container() -> BorshSchemaContainer[src]
impl<T: BorshSerialize> BorshSerialize for PromiseOrValue<T>[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>[src]
fn try_to_vec(&self) -> Result<Vec<u8>, Error>[src]
fn is_u8() -> bool[src]
impl<T> From<Promise> for PromiseOrValue<T>[src]
impl<T: Serialize> Serialize for PromiseOrValue<T>[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for PromiseOrValue<T>
impl<T> !Send for PromiseOrValue<T>
impl<T> !Sync for PromiseOrValue<T>
impl<T> Unpin for PromiseOrValue<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for PromiseOrValue<T>
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,
fn borrow_mut(&mut self) -> &mut T[src]
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, 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>,