pub struct DateTimeOrDuration(pub String);Expand description
Wrapper for Linear DateTimeOrDuration scalar (used in date comparators) Accepts ISO 8601 date strings or duration strings
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for DateTimeOrDuration
impl Clone for DateTimeOrDuration
Source§fn clone(&self) -> DateTimeOrDuration
fn clone(&self) -> DateTimeOrDuration
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 DateTimeOrDuration
impl Debug for DateTimeOrDuration
Source§impl<'de> Deserialize<'de> for DateTimeOrDuration
impl<'de> Deserialize<'de> for DateTimeOrDuration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IsScalar<DateTimeOrDuration> for DateTimeOrDuration
impl IsScalar<DateTimeOrDuration> for DateTimeOrDuration
Source§type SchemaType = DateTimeOrDuration
type SchemaType = DateTimeOrDuration
The schema marker type this scalar represents.
Source§impl Serialize for DateTimeOrDuration
impl Serialize for DateTimeOrDuration
impl CoercesTo<DateTimeOrDuration> for DateTimeOrDuration
Auto Trait Implementations§
impl Freeze for DateTimeOrDuration
impl RefUnwindSafe for DateTimeOrDuration
impl Send for DateTimeOrDuration
impl Sync for DateTimeOrDuration
impl Unpin for DateTimeOrDuration
impl UnwindSafe for DateTimeOrDuration
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