pub struct UserPnlRequest { /* private fields */ }Expand description
Request builder for a user’s PnL time series.
Implementations§
Source§impl UserPnlRequest
impl UserPnlRequest
Sourcepub fn interval(self, interval: impl Into<String>) -> Self
pub fn interval(self, interval: impl Into<String>) -> Self
Restrict the series to a trailing window (e.g. "1d", "1w", "all").
Omitted by default, which yields the upstream default window. Unlike
fidelity, the accepted values are not enumerated by
the API’s own error messages, so this takes a string.
Sourcepub fn fidelity(self, fidelity: PnlFidelity) -> Self
pub fn fidelity(self, fidelity: PnlFidelity) -> Self
Set the sampling resolution of the returned series.
Auto Trait Implementations§
impl !RefUnwindSafe for UserPnlRequest
impl !UnwindSafe for UserPnlRequest
impl Freeze for UserPnlRequest
impl Send for UserPnlRequest
impl Sync for UserPnlRequest
impl Unpin for UserPnlRequest
impl UnsafeUnpin for UserPnlRequest
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