[][src]Struct wikibase::Statement

pub struct Statement { /* fields omitted */ }


A Wikidata statement has a main statement (the main_snak), and qualifiers and references. In Wikidata terminology only a claim with references is a statement.


impl Statement[src]

pub fn new<S: Into<String>>(
    claim_type: S,
    rank: StatementRank,
    main_snak: Snak,
    qualifiers: Vec<Snak>,
    references: Vec<Reference>
) -> Statement

pub fn set_claim_type(&mut self, claim_type: &str)[src]

pub fn set_rank(&mut self, rank: StatementRank)[src]

pub fn set_datatype(&mut self, datatype: &str)[src]

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

pub fn set_property(&mut self, property: &str)[src]

pub fn set_main_snak(&mut self, snak: Snak)[src]

pub fn add_qualifier_snak(&mut self, snak: Snak)[src]

pub fn set_qualifier_snaks(&mut self, snaks: Vec<Snak>)[src]

pub fn set_references(&mut self, references: Vec<Reference>)[src]

pub fn references(&self) -> &Vec<Reference>[src]

pub fn qualifiers(&self) -> &Vec<Snak>[src]

pub fn main_snak(&self) -> &Snak[src]

Trait Implementations

impl Debug for Statement[src]

Auto Trait Implementations

impl Send for Statement

impl Sync for Statement

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

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

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