pub struct PnLSingle {
pub req_id: Option<i32>,
pub position: Option<String>,
pub daily_pn_l: Option<f64>,
pub unrealized_pn_l: Option<f64>,
pub realized_pn_l: Option<f64>,
pub value: Option<f64>,
}Fields§
§req_id: Option<i32>§position: Option<String>§daily_pn_l: Option<f64>§unrealized_pn_l: Option<f64>§realized_pn_l: Option<f64>§value: Option<f64>Implementations§
Source§impl PnLSingle
impl PnLSingle
Sourcepub fn req_id(&self) -> i32
pub fn req_id(&self) -> i32
Returns the value of req_id, or the default value if req_id is unset.
Sourcepub fn position(&self) -> &str
pub fn position(&self) -> &str
Returns the value of position, or the default value if position is unset.
Sourcepub fn daily_pn_l(&self) -> f64
pub fn daily_pn_l(&self) -> f64
Returns the value of daily_pn_l, or the default value if daily_pn_l is unset.
Sourcepub fn unrealized_pn_l(&self) -> f64
pub fn unrealized_pn_l(&self) -> f64
Returns the value of unrealized_pn_l, or the default value if unrealized_pn_l is unset.
Sourcepub fn realized_pn_l(&self) -> f64
pub fn realized_pn_l(&self) -> f64
Returns the value of realized_pn_l, or the default value if realized_pn_l is unset.
Trait Implementations§
Source§impl Message for PnLSingle
impl Message for PnLSingle
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for PnLSingle
Auto Trait Implementations§
impl Freeze for PnLSingle
impl RefUnwindSafe for PnLSingle
impl Send for PnLSingle
impl Sync for PnLSingle
impl Unpin for PnLSingle
impl UnsafeUnpin for PnLSingle
impl UnwindSafe for PnLSingle
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