Struct wikidata::Entity [−][src]
pub struct Entity {
pub id: WikiId,
pub claims: Vec<(Pid, ClaimValue)>,
pub entity_type: EntityType,
pub descriptions: BTreeMap<Lang, String>,
pub labels: BTreeMap<Lang, String>,
pub aliases: BTreeMap<Lang, Vec<String>>,
}Expand description
A Wikibase entity: this could be an entity, property, or lexeme.
Fields
id: WikiIdUnique identifier
claims: Vec<(Pid, ClaimValue)>All of the claims on the entity.
entity_type: EntityTypeThe type of the entity.
descriptions: BTreeMap<Lang, String>All of the descriptions in all known languages.
labels: BTreeMap<Lang, String>All of the labels in all known languages.
aliases: BTreeMap<Lang, Vec<String>>Known aliases of the item.
Implementations
When the entity started existing.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Entity
impl UnwindSafe for Entity
Blanket Implementations
Mutably borrows from an owned value. Read more
