pub struct RealtimeWikidataEntity {
pub identifier: String,
pub url: String,
pub aspects: Vec<String>,
}Expand description
Wikidata entity reference with aspects (used in Realtime API).
Aspects indicate how the entity is used in the article:
- “S” - Sitelinks are used
- “L” - Label is used
- “D” - Description is used
- “C” - Statements are used
- “X” - All aspects are used
- “O” - Something else is used
Fields§
§identifier: StringEntity identifier (e.g., “Q42”)
url: StringWikidata URL
aspects: Vec<String>Usage aspects (e.g., “S”, “O”, “C”)
Trait Implementations§
Source§impl Clone for RealtimeWikidataEntity
impl Clone for RealtimeWikidataEntity
Source§fn clone(&self) -> RealtimeWikidataEntity
fn clone(&self) -> RealtimeWikidataEntity
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 RealtimeWikidataEntity
impl Debug for RealtimeWikidataEntity
Source§impl<'de> Deserialize<'de> for RealtimeWikidataEntity
impl<'de> Deserialize<'de> for RealtimeWikidataEntity
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
Source§impl PartialEq for RealtimeWikidataEntity
impl PartialEq for RealtimeWikidataEntity
Source§impl Serialize for RealtimeWikidataEntity
impl Serialize for RealtimeWikidataEntity
impl StructuralPartialEq for RealtimeWikidataEntity
Auto Trait Implementations§
impl Freeze for RealtimeWikidataEntity
impl RefUnwindSafe for RealtimeWikidataEntity
impl Send for RealtimeWikidataEntity
impl Sync for RealtimeWikidataEntity
impl Unpin for RealtimeWikidataEntity
impl UnsafeUnpin for RealtimeWikidataEntity
impl UnwindSafe for RealtimeWikidataEntity
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