pub struct LinkCitation {
pub citation_id: Option<String>,
pub index: Option<u32>,
pub url: String,
pub title: String,
pub preview_text: Option<String>,
pub favicon_url: Option<String>,
pub quote: Option<String>,
pub char_start: Option<i64>,
pub char_end: Option<i64>,
pub reference_type: Option<String>,
pub text_positions: Vec<u32>,
}Expand description
A citation into a web page, attached to a text message part. Shares the
[N] index namespace with FileCitation.
Fields§
§citation_id: Option<String>Plugin-assigned id.
index: Option<u32>Matches the [N] token in the part text (1-indexed).
url: StringCited page URL.
title: StringCited page title.
preview_text: Option<String>Snippet / preview from the page.
favicon_url: Option<String>Favicon URL.
quote: Option<String>Cited text.
char_start: Option<i64>Zero-indexed start offset into the source plain text.
char_end: Option<i64>Exclusive end offset.
reference_type: Option<String>Citation kind label.
text_positions: Vec<u32>Character offsets in the part text where this citation’s [index] marker
appears. Plugin-provided; forwarded verbatim.
Trait Implementations§
Source§impl Clone for LinkCitation
impl Clone for LinkCitation
Source§fn clone(&self) -> LinkCitation
fn clone(&self) -> LinkCitation
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 LinkCitation
impl Debug for LinkCitation
Source§impl<'de> Deserialize<'de> for LinkCitation
impl<'de> Deserialize<'de> for LinkCitation
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 LinkCitation
impl RefUnwindSafe for LinkCitation
impl Send for LinkCitation
impl Sync for LinkCitation
impl Unpin for LinkCitation
impl UnsafeUnpin for LinkCitation
impl UnwindSafe for LinkCitation
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