pub struct PortfolioProfile {
pub user_id: String,
pub equity_used: f64,
pub equity_available: f64,
pub commodity_used: f64,
pub commodity_available: f64,
}
Expand description
Portfolio profile
Fields§
§user_id: String
User ID
equity_used: f64
Equity used
equity_available: f64
Equity available
commodity_used: f64
Commodity used
commodity_available: f64
Commodity available
Trait Implementations§
Source§impl Clone for PortfolioProfile
impl Clone for PortfolioProfile
Source§fn clone(&self) -> PortfolioProfile
fn clone(&self) -> PortfolioProfile
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 PortfolioProfile
impl Debug for PortfolioProfile
Source§impl<'de> Deserialize<'de> for PortfolioProfile
impl<'de> Deserialize<'de> for PortfolioProfile
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
Auto Trait Implementations§
impl Freeze for PortfolioProfile
impl RefUnwindSafe for PortfolioProfile
impl Send for PortfolioProfile
impl Sync for PortfolioProfile
impl Unpin for PortfolioProfile
impl UnwindSafe for PortfolioProfile
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