pub struct Timestamp(pub Timestamp);Expand description
A STIX 2.1 compliant timestamp wrapping a jiff::Timestamp.
Only accepts strings of the form YYYY-MM-DDTHH:mm:ss[.s+]Z in UTC.
Tuple Fields§
§0: TimestampImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Timestamp
impl<'de> Deserialize<'de> for Timestamp
Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> Result<Timestamp, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> Result<Timestamp, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Timestamp
Source§impl Ord for Timestamp
impl Ord for Timestamp
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Timestamp
impl PartialOrd for Timestamp
Source§impl Stix for Timestamp
impl Stix for Timestamp
Source§fn check(&self, _ctx: &mut CheckContext) -> Result<(), Error>
fn check(&self, _ctx: &mut CheckContext) -> Result<(), Error>
Ensures that all fields in the object or property conform to STIX 2.1. Read more
Source§fn stix_check(&self) -> Result<(), Error>
fn stix_check(&self) -> Result<(), Error>
Compatibility wrapper that runs
Stix::check and discards warnings.impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Forget for Timestamp
impl Freeze for Timestamp
impl Move for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnsafeUnpin for Timestamp
impl UnwindSafe for Timestamp
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