pub struct InstantiateReturnValue<AccountId> {
pub result: ExecReturnValue,
pub account_id: AccountId,
}
Expand description
The result of a successful contract instantiation.
Fields
result: ExecReturnValue
The output of the called constructor.
account_id: AccountId
The account id of the new contract.
Trait Implementations
impl<AccountId> Decode for InstantiateReturnValue<AccountId> where
AccountId: Decode,
AccountId: Decode,
impl<AccountId> Decode for InstantiateReturnValue<AccountId> where
AccountId: Decode,
AccountId: Decode,
impl<'de, AccountId> Deserialize<'de> for InstantiateReturnValue<AccountId> where
AccountId: Deserialize<'de>,
impl<'de, AccountId> Deserialize<'de> for InstantiateReturnValue<AccountId> where
AccountId: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<AccountId> Encode for InstantiateReturnValue<AccountId> where
AccountId: Encode,
AccountId: Encode,
impl<AccountId> Encode for InstantiateReturnValue<AccountId> where
AccountId: Encode,
AccountId: Encode,
impl<AccountId: PartialEq> PartialEq<InstantiateReturnValue<AccountId>> for InstantiateReturnValue<AccountId>
impl<AccountId: PartialEq> PartialEq<InstantiateReturnValue<AccountId>> for InstantiateReturnValue<AccountId>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<AccountId> EncodeLike<InstantiateReturnValue<AccountId>> for InstantiateReturnValue<AccountId> where
AccountId: Encode,
AccountId: Encode,
Auto Trait Implementations
impl<AccountId> RefUnwindSafe for InstantiateReturnValue<AccountId> where
AccountId: RefUnwindSafe,
impl<AccountId> Send for InstantiateReturnValue<AccountId> where
AccountId: Send,
impl<AccountId> Sync for InstantiateReturnValue<AccountId> where
AccountId: Sync,
impl<AccountId> Unpin for InstantiateReturnValue<AccountId> where
AccountId: Unpin,
impl<AccountId> UnwindSafe for InstantiateReturnValue<AccountId> where
AccountId: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
The counterpart to unchecked_from
.
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more