pub struct TradeQueryBuilder { /* private fields */ }Expand description
Builder for a validated TradeQuery.
Implementations§
Source§impl TradeQueryBuilder
impl TradeQueryBuilder
Sourcepub const fn start_timestamp(self, start_timestamp: Timestamp) -> Self
pub const fn start_timestamp(self, start_timestamp: Timestamp) -> Self
Sets the optional lower timestamp bound.
Sourcepub const fn end_timestamp(self, end_timestamp: Timestamp) -> Self
pub const fn end_timestamp(self, end_timestamp: Timestamp) -> Self
Sets the optional upper timestamp bound.
Sourcepub fn build(self) -> Result<TradeQuery, RequestValidationError>
pub fn build(self) -> Result<TradeQuery, RequestValidationError>
Validates and builds the trade query.
§Errors
Returns RequestValidationError::SearchRangeNotIncreasing when both
bounds are present and the end is not later than the start.
Trait Implementations§
Source§impl Clone for TradeQueryBuilder
impl Clone for TradeQueryBuilder
Source§fn clone(&self) -> TradeQueryBuilder
fn clone(&self) -> TradeQueryBuilder
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 moreimpl Copy for TradeQueryBuilder
Auto Trait Implementations§
impl Freeze for TradeQueryBuilder
impl RefUnwindSafe for TradeQueryBuilder
impl Send for TradeQueryBuilder
impl Sync for TradeQueryBuilder
impl Unpin for TradeQueryBuilder
impl UnsafeUnpin for TradeQueryBuilder
impl UnwindSafe for TradeQueryBuilder
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