pub struct CurrencyPosition {
pub currency: Currency,
pub balance: f64,
pub blocked: Option<f64>,
}Fields§
§currency: Currency§balance: f64§blocked: Option<f64>Implementations§
Source§impl CurrencyPosition
impl CurrencyPosition
pub fn new(currency: Currency, balance: f64) -> CurrencyPosition
Trait Implementations§
Source§impl Clone for CurrencyPosition
impl Clone for CurrencyPosition
Source§fn clone(&self) -> CurrencyPosition
fn clone(&self) -> CurrencyPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CurrencyPosition
impl Debug for CurrencyPosition
Source§impl<'de> Deserialize<'de> for CurrencyPosition
impl<'de> Deserialize<'de> for CurrencyPosition
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
Source§impl PartialEq for CurrencyPosition
impl PartialEq for CurrencyPosition
Source§impl Serialize for CurrencyPosition
impl Serialize for CurrencyPosition
impl StructuralPartialEq for CurrencyPosition
Auto Trait Implementations§
impl Freeze for CurrencyPosition
impl RefUnwindSafe for CurrencyPosition
impl Send for CurrencyPosition
impl Sync for CurrencyPosition
impl Unpin for CurrencyPosition
impl UnwindSafe for CurrencyPosition
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