pub struct CitationPreferences {
pub preferred_attribution: Option<String>,
pub canonical_links: Option<Vec<String>>,
pub do_not_cite: Option<Vec<String>>,
}Expand description
Citation preferences for the entity.
Fields§
§preferred_attribution: Option<String>Short attribution template with placeholders.
canonical_links: Option<Vec<String>>Canonical links to include when surfacing claims.
do_not_cite: Option<Vec<String>>Sources known to be stale or incorrect.
Trait Implementations§
Source§impl Clone for CitationPreferences
impl Clone for CitationPreferences
Source§fn clone(&self) -> CitationPreferences
fn clone(&self) -> CitationPreferences
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CitationPreferences
impl Debug for CitationPreferences
Source§impl Default for CitationPreferences
impl Default for CitationPreferences
Source§fn default() -> CitationPreferences
fn default() -> CitationPreferences
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CitationPreferences
impl<'de> Deserialize<'de> for CitationPreferences
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 CitationPreferences
impl RefUnwindSafe for CitationPreferences
impl Send for CitationPreferences
impl Sync for CitationPreferences
impl Unpin for CitationPreferences
impl UnsafeUnpin for CitationPreferences
impl UnwindSafe for CitationPreferences
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