pub struct LinkReference {
pub title: String,
pub url: String,
pub preview_text: String,
pub position: Vec<u32>,
pub preview_highlights: Vec<Value>,
pub ref_type: String,
pub ref_meta: Option<Value>,
pub idx: u32,
}Expand description
A lightweight URL badge attached to a text message part (no quote/anchor).
Fields§
§title: StringReference title.
url: StringReference URL.
preview_text: StringPreview text.
position: Vec<u32>Character offsets in the part text where the badge appears.
preview_highlights: Vec<Value>Highlight spans for the preview (plugin-defined shape).
ref_type: StringReference type: "url" (default) / "document" / "internal".
ref_meta: Option<Value>Additional metadata (e.g. entity_id for document references).
idx: u32Per-part ordinal so positional [N] → refs[N-1] is stable.
Trait Implementations§
Source§impl Clone for LinkReference
impl Clone for LinkReference
Source§fn clone(&self) -> LinkReference
fn clone(&self) -> LinkReference
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 LinkReference
impl Debug for LinkReference
Source§impl<'de> Deserialize<'de> for LinkReference
impl<'de> Deserialize<'de> for LinkReference
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 LinkReference
impl RefUnwindSafe for LinkReference
impl Send for LinkReference
impl Sync for LinkReference
impl Unpin for LinkReference
impl UnsafeUnpin for LinkReference
impl UnwindSafe for LinkReference
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