#[non_exhaustive]pub struct Timeframe<'a> {
pub description: Option<TextElement<'a>>,
pub earliest_date: Option<TextElement<'a>>,
pub latest_date: Option<TextElement<'a>>,
pub extensions: Vec<XmlNode<'a>>,
pub attributes: Vec<Attribute<'a>>,
pub span: Span,
}Expand description
ADF <timeframe> record.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.description: Option<TextElement<'a>>Timeframe description.
earliest_date: Option<TextElement<'a>>Earliest acceptable date.
latest_date: Option<TextElement<'a>>Latest acceptable date.
extensions: Vec<XmlNode<'a>>Unknown timeframe XML nodes.
attributes: Vec<Attribute<'a>>Timeframe attributes.
span: SpanByte span in the original input.
Implementations§
Source§impl<'a> Timeframe<'a>
impl<'a> Timeframe<'a>
pub fn builder(window: TimeframeWindow<'a>) -> TimeframeBuilder<'a>
Trait Implementations§
impl<'a> Eq for Timeframe<'a>
impl<'a> StructuralPartialEq for Timeframe<'a>
Auto Trait Implementations§
impl<'a> Freeze for Timeframe<'a>
impl<'a> RefUnwindSafe for Timeframe<'a>
impl<'a> Send for Timeframe<'a>
impl<'a> Sync for Timeframe<'a>
impl<'a> Unpin for Timeframe<'a>
impl<'a> UnsafeUnpin for Timeframe<'a>
impl<'a> UnwindSafe for Timeframe<'a>
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