pub enum Bound {
None,
Date(Zoned),
Timestamp(Zoned),
}Expand description
Possible variants of a CQL2 Instant and Interval limit.
Variants§
None
Unbounded temporal value used as lower, upper, or both limit(s);
represented by the string '..' .
Date(Zoned)
Instant with a 1-day granularity, in UTC time-zone.
Timestamp(Zoned)
Instant with a 1-second or less granularity in UTC time-zone.
Implementations§
Source§impl Bound
impl Bound
Sourcepub fn try_new_date(s: &str) -> Result<Self, MyError>
pub fn try_new_date(s: &str) -> Result<Self, MyError>
Try creating a new Bound::Date variant from a well-formed RFC-3339 date string. Return MyError if an error occurs.
Trait Implementations§
impl Eq for Bound
Source§impl PartialOrd for Bound
impl PartialOrd for Bound
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
impl UnwindSafe for Bound
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