[][src]Struct crossref::response::work::DateParts

pub struct DateParts(pub Vec<Vec<Option<u32>>>);

Helper struct to represent dates in the cross ref api as nested arrays of numbers

Methods

impl DateParts[src]

pub fn as_date(&self) -> Option<DateField>[src]

converts the nested array of numbers into the corresponding DateField standalone years are allowed. if an array is empty, None will be returned

Trait Implementations

impl PartialEq<DateParts> for DateParts[src]

impl Eq for DateParts[src]

impl Clone for DateParts[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for DateParts[src]

impl Serialize for DateParts[src]

impl<'de> Deserialize<'de> for DateParts[src]

Auto Trait Implementations

impl Send for DateParts

impl Sync for DateParts

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err