pub struct TradeQuery { /* private fields */ }Expand description
Trade search parameters with independently optional timestamp bounds.
Construct this request with TradeQuery::builder. Omitting both bounds
requests every trade available for the selected account.
Implementations§
Source§impl TradeQuery
impl TradeQuery
Sourcepub const fn builder(account_id: AccountId) -> TradeQueryBuilder
pub const fn builder(account_id: AccountId) -> TradeQueryBuilder
Starts a trade query for an account with no timestamp bounds.
Sourcepub const fn account_id(&self) -> AccountId
pub const fn account_id(&self) -> AccountId
Returns the provider account.
Sourcepub const fn start_timestamp(&self) -> Option<Timestamp>
pub const fn start_timestamp(&self) -> Option<Timestamp>
Returns the optional lower timestamp bound.
Sourcepub const fn end_timestamp(&self) -> Option<Timestamp>
pub const fn end_timestamp(&self) -> Option<Timestamp>
Returns the optional upper timestamp bound.
Trait Implementations§
Source§impl Clone for TradeQuery
impl Clone for TradeQuery
Source§fn clone(&self) -> TradeQuery
fn clone(&self) -> TradeQuery
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 TradeQuery
impl Debug for TradeQuery
impl Eq for TradeQuery
Source§impl PartialEq for TradeQuery
impl PartialEq for TradeQuery
Source§impl Serialize for TradeQuery
impl Serialize for TradeQuery
impl StructuralPartialEq for TradeQuery
Auto Trait Implementations§
impl Freeze for TradeQuery
impl RefUnwindSafe for TradeQuery
impl Send for TradeQuery
impl Sync for TradeQuery
impl Unpin for TradeQuery
impl UnsafeUnpin for TradeQuery
impl UnwindSafe for TradeQuery
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