pub struct TradeSearch { /* private fields */ }Expand description
Trade search parameters.
Implementations§
Source§impl TradeSearch
impl TradeSearch
Sourcepub fn new(
account_id: AccountId,
start_timestamp: Timestamp,
end_timestamp: Option<Timestamp>,
) -> Result<Self, RequestValidationError>
pub fn new( account_id: AccountId, start_timestamp: Timestamp, end_timestamp: Option<Timestamp>, ) -> Result<Self, RequestValidationError>
Creates a validated execution search.
§Errors
Returns RequestValidationError::SearchRangeNotIncreasing when an
end timestamp is present and is not later than the start.
Sourcepub const fn account_id(&self) -> AccountId
pub const fn account_id(&self) -> AccountId
Returns the provider account.
Sourcepub const fn start_timestamp(&self) -> Timestamp
pub const fn start_timestamp(&self) -> Timestamp
Returns the range start.
Sourcepub const fn end_timestamp(&self) -> Option<Timestamp>
pub const fn end_timestamp(&self) -> Option<Timestamp>
Returns the optional range end.
Trait Implementations§
Source§impl Clone for TradeSearch
impl Clone for TradeSearch
Source§fn clone(&self) -> TradeSearch
fn clone(&self) -> TradeSearch
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 TradeSearch
impl Debug for TradeSearch
impl Eq for TradeSearch
Source§impl PartialEq for TradeSearch
impl PartialEq for TradeSearch
Source§impl Serialize for TradeSearch
impl Serialize for TradeSearch
impl StructuralPartialEq for TradeSearch
Auto Trait Implementations§
impl Freeze for TradeSearch
impl RefUnwindSafe for TradeSearch
impl Send for TradeSearch
impl Sync for TradeSearch
impl Unpin for TradeSearch
impl UnsafeUnpin for TradeSearch
impl UnwindSafe for TradeSearch
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