pub struct MockApi { /* private fields */ }

Trait Implementations

Takes a human readable address and validates if it is valid. If it the validation succeeds, a Addr containing the same data as the input is returned. Read more
Takes a human readable address and returns a canonical binary representation of it. This can be used when a compact fixed length representation is needed. Read more
Takes a canonical address and returns a human readble address. This is the inverse of addr_canonicalize. Read more
Emits a debugging message that is handled depending on the environment (typically printed to console or ignored). Those messages are not persisted to chain. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.