[−][src]Struct wikibase::TimeValue
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]
after: u64,
before: u64,
calendarmodel: S,
precision: u64,
time: S,
timezone: u64
) -> TimeValue
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,