Struct wikidata::SitelinkValue
source · pub struct SitelinkValue {
pub title: String,
pub badges: Vec<Qid>,
pub url: Option<String>,
}
Expand description
A sitelink value.
Fields§
§title: String
The title of the site link.
badges: Vec<Qid>
The badges of the article.
url: Option<String>
The url of the article, if present
Trait Implementations§
source§impl Clone for SitelinkValue
impl Clone for SitelinkValue
source§fn clone(&self) -> SitelinkValue
fn clone(&self) -> SitelinkValue
Returns a copy 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 SitelinkValue
impl Debug for SitelinkValue
source§impl Default for SitelinkValue
impl Default for SitelinkValue
source§fn default() -> SitelinkValue
fn default() -> SitelinkValue
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SitelinkValue
impl<'de> Deserialize<'de> for SitelinkValue
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 SitelinkValue
impl PartialEq for SitelinkValue
source§fn eq(&self, other: &SitelinkValue) -> bool
fn eq(&self, other: &SitelinkValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SitelinkValue
impl Serialize for SitelinkValue
impl StructuralPartialEq for SitelinkValue
Auto Trait Implementations§
impl Freeze for SitelinkValue
impl RefUnwindSafe for SitelinkValue
impl Send for SitelinkValue
impl Sync for SitelinkValue
impl Unpin for SitelinkValue
impl UnwindSafe for SitelinkValue
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