pub enum FinancialRange {
Recent {
limit: u8,
},
Between {
start: UnixMillis,
end: UnixMillis,
},
}Expand description
Mutually exclusive recent-period or timestamp-range financial query.
Variants§
Implementations§
Source§impl FinancialRange
impl FinancialRange
pub const fn recent(limit: u8) -> Result<Self, ValidationError>
pub const fn between( start: UnixMillis, end: UnixMillis, ) -> Result<Self, ValidationError>
Trait Implementations§
Source§impl Clone for FinancialRange
impl Clone for FinancialRange
Source§fn clone(&self) -> FinancialRange
fn clone(&self) -> FinancialRange
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 FinancialRange
Source§impl Debug for FinancialRange
impl Debug for FinancialRange
impl Eq for FinancialRange
Source§impl PartialEq for FinancialRange
impl PartialEq for FinancialRange
impl StructuralPartialEq for FinancialRange
Auto Trait Implementations§
impl Freeze for FinancialRange
impl RefUnwindSafe for FinancialRange
impl Send for FinancialRange
impl Sync for FinancialRange
impl Unpin for FinancialRange
impl UnsafeUnpin for FinancialRange
impl UnwindSafe for FinancialRange
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