pub struct WikidataEntity {
pub qid: String,
pub label: String,
pub description: Option<String>,
pub aliases: Vec<String>,
pub instance_of: Vec<String>,
pub subclass_of: Vec<String>,
pub sitelinks: u32,
pub entity_type: Option<WikidataNERType>,
pub wikipedia_url: Option<String>,
pub image_url: Option<String>,
}Expand description
A Wikidata entity (Q-item).
Fields§
§qid: StringQ-identifier (e.g., “Q937”)
label: StringPrimary label in preferred language
description: Option<String>Short description
aliases: Vec<String>Alternative names/aliases
instance_of: Vec<String>Instance-of types (Q-IDs)
subclass_of: Vec<String>Subclass-of types (Q-IDs)
sitelinks: u32Number of Wikipedia sitelinks (popularity proxy)
entity_type: Option<WikidataNERType>Mapped NER entity type
wikipedia_url: Option<String>Wikipedia URL (if available)
image_url: Option<String>Image URL (if available)
Implementations§
Trait Implementations§
Source§impl Clone for WikidataEntity
impl Clone for WikidataEntity
Source§fn clone(&self) -> WikidataEntity
fn clone(&self) -> WikidataEntity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WikidataEntity
impl Debug for WikidataEntity
Source§impl<'de> Deserialize<'de> for WikidataEntity
impl<'de> Deserialize<'de> for WikidataEntity
Source§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 Freeze for WikidataEntity
impl RefUnwindSafe for WikidataEntity
impl Send for WikidataEntity
impl Sync for WikidataEntity
impl Unpin for WikidataEntity
impl UnsafeUnpin for WikidataEntity
impl UnwindSafe for WikidataEntity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more