pub struct DataPeriod {
pub start: DateTime<Utc>,
pub end: DateTime<Utc>,
}Expand description
Time window the underlying data covers.
Per acdp-common.schema.json#/$defs/data_period, both start and end
are required (additionalProperties: false). The schema does not compare
timestamps; producers SHOULD ensure start <= end and registries
SHOULD reject start > end as schema_violation at runtime.
data_period is a CLOSED two-field wire shape and part of
ProducerContent — an unknown field would silently change the
content_hash preimage, so deny_unknown_fields rejects it
(RFC-ACDP-0007 §3.3.1, conformance fixture schema-009).
Fields§
§start: DateTime<Utc>Inclusive start of the data period.
end: DateTime<Utc>Inclusive end of the data period.
Trait Implementations§
Source§impl Clone for DataPeriod
impl Clone for DataPeriod
Source§fn clone(&self) -> DataPeriod
fn clone(&self) -> DataPeriod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataPeriod
impl Debug for DataPeriod
Source§impl<'de> Deserialize<'de> for DataPeriod
impl<'de> Deserialize<'de> for DataPeriod
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
Auto Trait Implementations§
impl Freeze for DataPeriod
impl RefUnwindSafe for DataPeriod
impl Send for DataPeriod
impl Sync for DataPeriod
impl Unpin for DataPeriod
impl UnsafeUnpin for DataPeriod
impl UnwindSafe for DataPeriod
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