Enum wikibase::EntityType [] [src]

pub enum EntityType {
    Item,
    Property,
}

EntityType

Type of the a Wikidata entity. Is either Item or Property.

JSON Mapping

Item = item Property = property

Example

let entity_type = wikibase::EntityType::Item;
let item = wikibase::EntityType::new_from_str("Q256");
let property = wikibase::EntityType::new_from_str("P18");

Variants

Methods

impl EntityType
[src]

Trait Implementations

impl Debug for EntityType
[src]

[src]

Formats the value using the given formatter.