Struct wikibase::Snak
[−]
[src]
pub struct Snak { /* fields omitted */ }
Snak
Each Snak has a property and a value (data_value
). Each claim has
one main snak and an arbitrary amount of snaks for qualifiers and
references.
Data type
- commonsMedia
- wikibase-item
Methods
impl Snak
[src]
Main snak data structure
The main snak is an object that contains the main claim information: the property, datatype and the value. The claim, qualifiers and references are the 3 snaks of a claim or statement object.
fn new<S: Into<String>>(
datatype: S,
property: S,
snak_type: SnakType,
data_value: Option<DataValue>
) -> Snak
[src]
datatype: S,
property: S,
snak_type: SnakType,
data_value: Option<DataValue>
) -> Snak