pub struct TimeBounds { /* private fields */ }
Expand description
A time range for the validity of an operation.
Implementations§
Source§impl TimeBounds
impl TimeBounds
Sourcepub fn new(
lower: Option<UnixTimestamp>,
upper: Option<UnixTimestamp>,
) -> TimeBounds
pub fn new( lower: Option<UnixTimestamp>, upper: Option<UnixTimestamp>, ) -> TimeBounds
Create new time bounds for the validity of an operation.
If lower
is not None
, the operation will not be valid before the specified date.
If upper
is not None
, the operation will not be valid after the specified date.
Sourcepub fn lower(&self) -> &Option<UnixTimestamp>
pub fn lower(&self) -> &Option<UnixTimestamp>
The lower time bound.
Sourcepub fn upper(&self) -> &Option<UnixTimestamp>
pub fn upper(&self) -> &Option<UnixTimestamp>
The upper time bound.
Trait Implementations§
Source§impl Clone for TimeBounds
impl Clone for TimeBounds
Source§fn clone(&self) -> TimeBounds
fn clone(&self) -> TimeBounds
Returns a duplicate of the value. Read more
1.0.0 · 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 TimeBounds
impl Debug for TimeBounds
Source§impl PartialEq for TimeBounds
impl PartialEq for TimeBounds
impl Eq for TimeBounds
impl StructuralPartialEq for TimeBounds
Auto Trait Implementations§
impl Freeze for TimeBounds
impl RefUnwindSafe for TimeBounds
impl Send for TimeBounds
impl Sync for TimeBounds
impl Unpin for TimeBounds
impl UnwindSafe for TimeBounds
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