pub struct GetClosedPnlParams {
pub category: Category,
pub symbol: Option<String>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub limit: Option<i32>,
pub cursor: Option<String>,
}Fields§
§category: Categorylinear, inverse
symbol: Option<String>Required for inverse; optional for linear
start_time: Option<Timestamp>§end_time: Option<Timestamp>§limit: Option<i32>[1, 100]. Default: 50
cursor: Option<String>Implementations§
Source§impl GetClosedPnlParams
impl GetClosedPnlParams
pub fn new(category: Category) -> Self
pub fn with_symbol(self, v: String) -> Self
pub fn with_start_time(self, v: Timestamp) -> Self
pub fn with_end_time(self, v: Timestamp) -> Self
pub fn with_limit(self, v: i32) -> Self
pub fn with_cursor(self, v: String) -> Self
Trait Implementations§
Source§impl Clone for GetClosedPnlParams
impl Clone for GetClosedPnlParams
Source§fn clone(&self) -> GetClosedPnlParams
fn clone(&self) -> GetClosedPnlParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GetClosedPnlParams
impl Debug for GetClosedPnlParams
Auto Trait Implementations§
impl Freeze for GetClosedPnlParams
impl RefUnwindSafe for GetClosedPnlParams
impl Send for GetClosedPnlParams
impl Sync for GetClosedPnlParams
impl Unpin for GetClosedPnlParams
impl UnsafeUnpin for GetClosedPnlParams
impl UnwindSafe for GetClosedPnlParams
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