pub struct CodeUploadReturnValue<CodeHash, Balance> {
pub code_hash: CodeHash,
pub deposit: Balance,
}
Expand description
The result of succesfully uploading a contract.
Fields
code_hash: CodeHash
The key under which the new code is stored.
deposit: Balance
The deposit that was reserved at the caller. Is zero when the code already existed.
Trait Implementations
impl<CodeHash, Balance> Debug for CodeUploadReturnValue<CodeHash, Balance> where
CodeHash: Debug,
Balance: Debug,
impl<CodeHash, Balance> Debug for CodeUploadReturnValue<CodeHash, Balance> where
CodeHash: Debug,
Balance: Debug,
impl<'de, CodeHash, Balance> Deserialize<'de> for CodeUploadReturnValue<CodeHash, Balance> where
CodeHash: Deserialize<'de>,
Balance: TryFrom<NumberOrHex>,
impl<'de, CodeHash, Balance> Deserialize<'de> for CodeUploadReturnValue<CodeHash, Balance> where
CodeHash: Deserialize<'de>,
Balance: TryFrom<NumberOrHex>,
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<CodeHash: PartialEq, Balance: PartialEq> PartialEq<CodeUploadReturnValue<CodeHash, Balance>> for CodeUploadReturnValue<CodeHash, Balance>
impl<CodeHash: PartialEq, Balance: PartialEq> PartialEq<CodeUploadReturnValue<CodeHash, Balance>> for CodeUploadReturnValue<CodeHash, Balance>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<CodeHash, Balance> Serialize for CodeUploadReturnValue<CodeHash, Balance> where
CodeHash: Serialize,
Balance: Copy + Into<NumberOrHex>,
impl<CodeHash, Balance> Serialize for CodeUploadReturnValue<CodeHash, Balance> where
CodeHash: Serialize,
Balance: Copy + Into<NumberOrHex>,
impl<CodeHash, Balance> EncodeLike<CodeUploadReturnValue<CodeHash, Balance>> for CodeUploadReturnValue<CodeHash, Balance> where
CodeHash: Encode,
CodeHash: Encode,
Balance: Encode,
Balance: Encode,
Auto Trait Implementations
impl<CodeHash, Balance> RefUnwindSafe for CodeUploadReturnValue<CodeHash, Balance> where
Balance: RefUnwindSafe,
CodeHash: RefUnwindSafe,
impl<CodeHash, Balance> Send for CodeUploadReturnValue<CodeHash, Balance> where
Balance: Send,
CodeHash: Send,
impl<CodeHash, Balance> Sync for CodeUploadReturnValue<CodeHash, Balance> where
Balance: Sync,
CodeHash: Sync,
impl<CodeHash, Balance> Unpin for CodeUploadReturnValue<CodeHash, Balance> where
Balance: Unpin,
CodeHash: Unpin,
impl<CodeHash, Balance> UnwindSafe for CodeUploadReturnValue<CodeHash, Balance> where
Balance: UnwindSafe,
CodeHash: 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