pub struct Cite {
pub href: String,
pub title: Option<String>,
pub n: Option<u32>,
pub site: Option<String>,
pub snippet: Option<String>,
}Expand description
A source a span cites.
Fields§
§href: StringWhere the source is; opened on click. A cite without one is ignored.
title: Option<String>The source’s title.
n: Option<u32>The number shown (default: the next free one, by first appearance).
site: Option<String>The name the pill shows (default: the href’s host, www. dropped).
snippet: Option<String>A quote shown in the hover card.
Implementations§
Trait Implementations§
impl Eq for Cite
impl StructuralPartialEq for Cite
Auto Trait Implementations§
impl Freeze for Cite
impl RefUnwindSafe for Cite
impl Send for Cite
impl Sync for Cite
impl Unpin for Cite
impl UnsafeUnpin for Cite
impl UnwindSafe for Cite
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.