[][src]Struct wikibase::TimeValue

pub struct TimeValue { /* fields omitted */ }

Time value

Struct holding time information. The time is given as a string in the format "+1864-12-24T00:00:00Z". The calendar model is given as a link to an entity http://www.wikidata.org/entity/Q1985727.

Wikibase documentation

https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times

Methods

impl TimeValue[src]

pub fn new<S: Into<String>>(
    after: u64,
    before: u64,
    calendarmodel: S,
    precision: u64,
    time: S,
    timezone: u64
) -> TimeValue
[src]

pub fn after(&self) -> &u64[src]

pub fn before(&self) -> &u64[src]

pub fn calendarmodel(&self) -> &str[src]

pub fn precision(&self) -> &u64[src]

pub fn set_after(&mut self, after: u64)[src]

pub fn set_before(&mut self, before: u64)[src]

pub fn set_calendarmodel<S: Into<String>>(&mut self, calendarmodel: S)[src]

pub fn set_precision(&mut self, precision: u64)[src]

pub fn set_time<S: Into<String>>(&mut self, time: S)[src]

pub fn set_timezone(&mut self, timezone: u64)[src]

pub fn time(&self) -> &str[src]

pub fn timezone(&self) -> &u64[src]

Trait Implementations

impl Debug for TimeValue[src]

Auto Trait Implementations

impl Send for TimeValue

impl Sync for TimeValue

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]