[][src]Struct iota_model::Inputs

pub struct Inputs { /* fields omitted */ }

Represents a grouping of inputs and their cumulative balance

Methods

impl Inputs[src]

pub fn inputs_list(&self) -> &[Input][src]

Provides a view of the inputs_list

pub fn inputs_list_mut(&mut self) -> &mut [Input][src]

Provides a mutable view of the inputs_list

pub fn set_inputs_list(&mut self, new_value: impl Into<Vec<Input>>)[src]

Setter accepting anything that can be turned into the relevant type

pub fn add(&mut self, new_value: impl Into<Input>)[src]

Provides a view of the inputs address

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

Provides a view of the total_balance

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

Provides a mutable view of the total_balance

pub fn set_total_balance(&mut self, new_value: impl Into<i64>)[src]

Setter accepting anything that can be turned into the relevant type

Trait Implementations

impl PartialEq<Inputs> for Inputs[src]

impl Clone for Inputs[src]

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

Performs copy-assignment from source. Read more

impl Default for Inputs[src]

impl Debug for Inputs[src]

impl Display for Inputs[src]

impl Serialize for Inputs[src]

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

Auto Trait Implementations

impl Send for Inputs

impl Sync for Inputs

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]