[][src]Struct iota_model::Transfer

pub struct Transfer { /* fields omitted */ }

Represents a transfer in IOTA

Methods

impl Transfer[src]

pub fn address(&self) -> &str[src]

Provides a view of the address

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

Provides a mutable view of the address

pub fn set_address<T>(&mut self, new_value: T) where
    T: Into<String>, 
[src]

Setter accepting anything that can be turned into the relevant type

pub fn hash(&self) -> &Option<String>[src]

Provides a view of the hash

pub fn hash_mut(&mut self) -> &mut Option<String>[src]

Provides a mutable view of the hash

pub fn set_hash<T>(&mut self, new_value: T) where
    T: Into<String>, 
[src]

Setter accepting anything that can be turned into the relevant type

pub fn persistence(&self) -> &Option<bool>[src]

Provides a view of the persistence

pub fn persistence_mut(&mut self) -> &mut Option<bool>[src]

Provides a mutable view of the persistence

pub fn set_persistence<T>(&mut self, new_value: T) where
    T: Into<bool>, 
[src]

Setter accepting anything that can be turned into the relevant type

pub fn timestamp(&self) -> &Option<String>[src]

Provides a view of the timestamp

pub fn timestamp_mut(&mut self) -> &mut Option<String>[src]

Provides a mutable view of the timestamp

pub fn set_timestamp<T>(&mut self, new_value: T) where
    T: Into<String>, 
[src]

Setter accepting anything that can be turned into the relevant type

pub fn value(&self) -> &i64[src]

Provides a view of the value

pub fn value_mut(&mut self) -> &mut i64[src]

Provides a mutable view of the value

pub fn set_value<T>(&mut self, new_value: T) where
    T: Into<i64>, 
[src]

Setter accepting anything that can be turned into the relevant type

pub fn message(&self) -> &str[src]

Provides a view of the message

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

Provides a mutable view of the message

pub fn set_message<T>(&mut self, new_value: T) where
    T: Into<String>, 
[src]

Setter accepting anything that can be turned into the relevant type

pub fn tag(&self) -> Option<String>[src]

Provides a view of the tag

pub fn tag_mut(&mut self) -> &mut Option<String>[src]

Provides a mutable view of the tag

pub fn set_tag<T>(&mut self, new_value: T) where
    T: Into<String>, 
[src]

Setter accepting anything that can be turned into the relevant type

pub fn obsolete_tag(&self) -> Option<String>[src]

Provides a view of the obsolete_tag

pub fn obsolete_tag_mut(&mut self) -> &mut Option<String>[src]

Provides a mutable view of the obsolete_tag

pub fn set_obsolete_tag<T>(&mut self, new_value: T) where
    T: Into<String>, 
[src]

Setter accepting anything that can be turned into the relevant type

Trait Implementations

impl Into<Vec<Transfer>> for Transfer[src]

impl<'_> Into<Vec<Transfer>> for &'_ Transfer[src]

impl PartialEq<Transfer> for Transfer[src]

impl Clone for Transfer[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Transfer[src]

impl Debug for Transfer[src]

impl Display for Transfer[src]

impl Serialize for Transfer[src]

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

Auto Trait Implementations

impl Send for Transfer

impl Sync for Transfer

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for 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.

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

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

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

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