[][src]Struct basic_contract_rs::MyAsset

pub struct MyAsset { /* fields omitted */ }

Basic definition of the asset object

Implementations

impl MyAsset[src]

Standard Implementation

pub fn new(id: String, value: String) -> MyAsset[src]

pub fn get_value(&self) -> String[src]

Trait Implementations

impl DataType for MyAsset[src]

The DataType trait must be implemented for this struct to be handled by the contract

impl Debug for MyAsset[src]

impl Default for MyAsset[src]

impl<'de> Deserialize<'de> for MyAsset[src]

impl<'_> From<&'_ WireBuffer> for MyAsset[src]

impl Serialize for MyAsset[src]

impl WireBufferFromReturnType<MyAsset> for WireBuffer[src]

Auto Trait Implementations

impl RefUnwindSafe for MyAsset

impl Send for MyAsset

impl Sync for MyAsset

impl Unpin for MyAsset

impl UnwindSafe for MyAsset

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.