Enum wikidata::ClaimValueData [−][src]
pub enum ClaimValueData {}Show variants
CommonsMedia(String), GlobeCoordinate { lat: f64, lon: f64, precision: f64, globe: Qid, }, Item(Qid), Property(Pid), String(String), MonolingualText(Text), MultilingualText(Vec<Text>), ExternalID(String), Quantity { amount: f64, lower_bound: Option<f64>, upper_bound: Option<f64>, unit: Option<Qid>, }, DateTime { date_time: DateTime<Utc>, precision: u8, }, Url(String), MathExpr(String), GeoShape(String), MusicNotation(String), TabularData(String), Lexeme(Lid), Form(Fid), Sense(Sid), NoValue, UnknownValue,
Expand description
Data relating to a claim value.
Variants
CommonsMedia(String)
The ID of a file on Wikimedia Commons.
Coordinates on some globe.
Show fields
Item(Qid)
A Wikidata item.
Property(Pid)
A Wikidata property.
String(String)
A language-less string of text.
MonolingualText(Text)
Text with a language.
The same text, translated across multiple languages.
ExternalID(String)
An external identifier.
Some numeric quantity of something.
Show fields
A point in time time.
Show fields
Fields of DateTime
date_time: DateTime<Utc>
The time as a Chrono DateTime.
precision: u8
The precision of the date:
precision | time |
---|---|
0 | 1 billion years |
1 | 100 million years |
2 | 10 million years |
3 | 1 million years |
4 | 100k years |
5 | 10k years |
6 | 1000 years |
7 | 100 years |
8 | decade |
9 | year |
10 | month |
11 | day |
12 | hour (deprecated) |
13 | minute (deprecated) |
14 | second (deprecated) |
Url(String)
A URL.
MathExpr(String)
A LaTeX math expression.
GeoShape(String)
A geometric shape. The value of the string is currently unspecified.
MusicNotation(String)
LilyPond musical notation.
TabularData(String)
ID of a file with tabular data on Wikimedia commons.
Lexeme(Lid)
A lexeme ID on Wikidata.
Form(Fid)
A form ID on Wikidata.
Sense(Sid)
A sense ID on Wikidata.
No value.
Unknown value.
Implementations
impl ClaimValueData
[src]
impl ClaimValueData
[src]pub fn parse_snak(snak: Value) -> Result<Self, EntityError>
[src]
pub fn parse_snak(snak: Value) -> Result<Self, EntityError>
[src]Parses a snak.
Errors
If the snak
does not correspond to a valid snak, then an error will be returned.
Trait Implementations
impl Clone for ClaimValueData
[src]
impl Clone for ClaimValueData
[src]fn clone(&self) -> ClaimValueData
[src]
fn clone(&self) -> ClaimValueData
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ClaimValueData
[src]
impl Debug for ClaimValueData
[src]impl Default for ClaimValueData
[src]
impl Default for ClaimValueData
[src]impl<'de> Deserialize<'de> for ClaimValueData
[src]
impl<'de> Deserialize<'de> for ClaimValueData
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<ClaimValueData> for ClaimValueData
[src]
impl PartialEq<ClaimValueData> for ClaimValueData
[src]fn eq(&self, other: &ClaimValueData) -> bool
[src]
fn eq(&self, other: &ClaimValueData) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ClaimValueData) -> bool
[src]
fn ne(&self, other: &ClaimValueData) -> bool
[src]This method tests for !=
.
impl Serialize for ClaimValueData
[src]
impl Serialize for ClaimValueData
[src]impl StructuralPartialEq for ClaimValueData
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClaimValueData
impl Send for ClaimValueData
impl Sync for ClaimValueData
impl Unpin for ClaimValueData
impl UnwindSafe for ClaimValueData
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,