pub struct HistoryRow {
pub version: DocVersion,
pub date: Option<DocDate>,
}Expand description
One row of an ADR’s version-history table: the version it records and the date it claims to have been made on.
The date is Option because the column is prose in practice — rows carrying
TBD, a range, or nothing at all exist — and a row without a parseable date
is still a real history row for the ordering rule. Only the rules that
compare dates skip it.
Fields§
§version: DocVersionThe version in the row’s first cell.
date: Option<DocDate>The date in the row’s second cell, when it parses as YYYY-MM-DD.
Trait Implementations§
Source§impl Clone for HistoryRow
impl Clone for HistoryRow
Source§fn clone(&self) -> HistoryRow
fn clone(&self) -> HistoryRow
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 moreimpl Copy for HistoryRow
Source§impl Debug for HistoryRow
impl Debug for HistoryRow
impl Eq for HistoryRow
Source§impl PartialEq for HistoryRow
impl PartialEq for HistoryRow
impl StructuralPartialEq for HistoryRow
Auto Trait Implementations§
impl Freeze for HistoryRow
impl RefUnwindSafe for HistoryRow
impl Send for HistoryRow
impl Sync for HistoryRow
impl Unpin for HistoryRow
impl UnsafeUnpin for HistoryRow
impl UnwindSafe for HistoryRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.