pub struct Inputs { /* private fields */ }
Expand description
Represents a grouping of inputs and their cumulative balance
Implementations§
Source§impl Inputs
impl Inputs
Sourcepub fn inputs_list(&self) -> &[Input]
pub fn inputs_list(&self) -> &[Input]
Provides a view of the inputs_list
Sourcepub fn inputs_list_mut(&mut self) -> &mut [Input]
pub fn inputs_list_mut(&mut self) -> &mut [Input]
Provides a mutable view of the inputs_list
Sourcepub fn set_inputs_list(&mut self, new_value: impl Into<Vec<Input>>)
pub fn set_inputs_list(&mut self, new_value: impl Into<Vec<Input>>)
Setter accepting anything that can be turned into the relevant type
Sourcepub fn total_balance(&self) -> i64
pub fn total_balance(&self) -> i64
Provides a view of the total_balance
Sourcepub fn total_balance_mut(&mut self) -> &mut i64
pub fn total_balance_mut(&mut self) -> &mut i64
Provides a mutable view of the total_balance
Sourcepub fn set_total_balance(&mut self, new_value: impl Into<i64>)
pub fn set_total_balance(&mut self, new_value: impl Into<i64>)
Setter accepting anything that can be turned into the relevant type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inputs
impl<'de> Deserialize<'de> for Inputs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Inputs
Auto Trait Implementations§
impl Freeze for Inputs
impl RefUnwindSafe for Inputs
impl Send for Inputs
impl Sync for Inputs
impl Unpin for Inputs
impl UnwindSafe for Inputs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more