pub enum DurationOperator {
Equal,
GreaterOrEqual,
LessThanOrEqual,
}Expand description
§Usage
Used by SimpleDurationConstraint.
Variants§
Equal
The = operator: the duration equals the value.
GreaterOrEqual
§Requirements
Requires Duration Inequalities;
LessThanOrEqual
§Requirements
Requires Duration Inequalities;
Trait Implementations§
Source§impl Clone for DurationOperator
impl Clone for DurationOperator
impl Copy for DurationOperator
Source§impl Debug for DurationOperator
impl Debug for DurationOperator
Source§impl<'de> Deserialize<'de> for DurationOperator
Available on crate feature serde only.
impl<'de> Deserialize<'de> for DurationOperator
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DurationOperator
impl Display for DurationOperator
impl Eq for DurationOperator
Source§impl Parser for DurationOperator
Available on crate feature parser only.
impl Parser for DurationOperator
Available on crate feature
parser only.Source§type Item = DurationOperator
type Item = DurationOperator
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl PartialEq for DurationOperator
impl PartialEq for DurationOperator
Source§impl Serialize for DurationOperator
Available on crate feature serde only.
impl Serialize for DurationOperator
Available on crate feature
serde only.impl StructuralPartialEq for DurationOperator
Source§impl TryFrom<&str> for DurationOperator
impl TryFrom<&str> for DurationOperator
Source§impl Visitor<DurationOperator, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<DurationOperator, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &DurationOperator) -> RcDoc<'static>
fn visit(&self, value: &DurationOperator) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for DurationOperator
impl Freeze for DurationOperator
impl Move for DurationOperator
impl RefUnwindSafe for DurationOperator
impl Send for DurationOperator
impl Sync for DurationOperator
impl Unpin for DurationOperator
impl UnsafeUnpin for DurationOperator
impl UnwindSafe for DurationOperator
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
Lets the mutable visitor
v visit self.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Pretty for Twhere
T: PrettyVisit,
impl<T> Pretty for Twhere
T: PrettyVisit,
Source§impl<T> PrettyVisit for T
impl<T> PrettyVisit for T
Source§fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
Available on crate feature
pretty only.Builds the document for
self with the renderer r.