pub struct AccessDate {
pub year: Year,
pub month: Month,
pub day: Day,
}Expand description
The date on which somebody retrieved a work, written down by whoever did it.
Always a full date: APA’s retrieval clause is Retrieved January 9, 2020, from …, so a partial one could not be rendered. It reaches a record only
through Stability::UnarchivedAndChanging, which is the single condition
under which APA wants it at all.
Fields§
§year: YearThe year.
month: MonthThe month.
day: DayThe day of the month.
Implementations§
Source§impl AccessDate
impl AccessDate
Sourcepub fn names_a_day_that_exists(self) -> bool
pub fn names_a_day_that_exists(self) -> bool
Whether this names a day that exists — see
PublicationDate::names_a_day_that_exists, which this shares its
calendar with.
A retrieval date is always full precision, so unlike a publication date
there is no case where the question does not arise. Without it the
formatter emitted Retrieved February 31, 2021, from … — a statement
that somebody read a work on a day that did not happen.
Trait Implementations§
Source§impl Clone for AccessDate
impl Clone for AccessDate
Source§fn clone(&self) -> AccessDate
fn clone(&self) -> AccessDate
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 AccessDate
Source§impl Debug for AccessDate
impl Debug for AccessDate
Source§impl<'de> Deserialize<'de> for AccessDate
impl<'de> Deserialize<'de> for AccessDate
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
impl Eq for AccessDate
Source§impl Ord for AccessDate
impl Ord for AccessDate
Source§fn cmp(&self, other: &AccessDate) -> Ordering
fn cmp(&self, other: &AccessDate) -> Ordering
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 PartialEq for AccessDate
impl PartialEq for AccessDate
Source§impl PartialOrd for AccessDate
impl PartialOrd for AccessDate
Source§impl Serialize for AccessDate
impl Serialize for AccessDate
impl StructuralPartialEq for AccessDate
Auto Trait Implementations§
impl Freeze for AccessDate
impl RefUnwindSafe for AccessDate
impl Send for AccessDate
impl Sync for AccessDate
impl Unpin for AccessDate
impl UnsafeUnpin for AccessDate
impl UnwindSafe for AccessDate
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.