[][src]Struct asset_transfer_rs::Asset

pub struct Asset { /* fields omitted */ }

Implementations

impl Asset[src]

pub fn new(
    id: String,
    color: String,
    size: i32,
    owner: String,
    appraised_value: i32
) -> Asset
[src]

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

pub fn update_owner(&mut self, owner: String)[src]

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

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

Trait Implementations

impl DataType for Asset[src]

Very important to implement the DataType Trait for the Asset

This provides the ability to store the data in the ledger

impl Debug for Asset[src]

impl Default for Asset[src]

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

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

impl Serialize for Asset[src]

impl WireBufferFromReturnType<Asset> for WireBuffer[src]

Auto Trait Implementations

impl RefUnwindSafe for Asset

impl Send for Asset

impl Sync for Asset

impl Unpin for Asset

impl UnwindSafe for Asset

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> Same<T> for T

type Output = T

Should always be Self

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.