pub struct WikidataEntity {
pub identifier: String,
pub url: String,
}Expand description
Wikidata entity reference.
§Examples
use wme_models::WikidataEntity;
let entity = WikidataEntity {
identifier: "Q42".to_string(),
url: "https://www.wikidata.org/entity/Q42".to_string(),
};
assert_eq!(entity.identifier, "Q42");Fields§
§identifier: StringEntity identifier (e.g., “Q42”)
url: StringWikidata URL
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
Source§impl PartialEq for WikidataEntity
impl PartialEq for WikidataEntity
Source§impl Serialize for WikidataEntity
impl Serialize for WikidataEntity
impl StructuralPartialEq for WikidataEntity
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