Struct sewup::primitives::EwasmAny[][src]

pub struct EwasmAny {
    pub bin: Vec<u8>,
}
Expand description

helps you return different type of date in the contract handlers The any serializable data can easy to become EwasmAny by following command EwasmAny::from(instance) and the data will preserialized and store in the EwasmAny structure, once the ewasm_main function try to return the instance of EwasmAny, the preserialized data will be returned.

Fields

bin: Vec<u8>

Implementations

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.