pub struct OrderSearch { /* private fields */ }Expand description
Historical order search parameters.
Implementations§
Source§impl OrderSearch
impl OrderSearch
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 historical order search.
§Errors
Returns RequestValidationError::SearchRangeNotIncreasing when an
end timestamp is not later than the start timestamp.
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 OrderSearch
impl Clone for OrderSearch
Source§fn clone(&self) -> OrderSearch
fn clone(&self) -> OrderSearch
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 OrderSearch
impl Debug for OrderSearch
impl Eq for OrderSearch
Source§impl PartialEq for OrderSearch
impl PartialEq for OrderSearch
Source§impl Serialize for OrderSearch
impl Serialize for OrderSearch
impl StructuralPartialEq for OrderSearch
Auto Trait Implementations§
impl Freeze for OrderSearch
impl RefUnwindSafe for OrderSearch
impl Send for OrderSearch
impl Sync for OrderSearch
impl Unpin for OrderSearch
impl UnsafeUnpin for OrderSearch
impl UnwindSafe for OrderSearch
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