pub struct RichTextAnchorLink {
pub kind: String,
pub text: RichText,
pub anchor_name: String,
}Expand description
A link to an in-document anchor (<a href="#id">text</a>).
If anchor_name is empty the link scrolls back to the top of the message.
Fields§
§kind: StringAlways "anchor_link".
text: RichTextThe display text.
anchor_name: StringThe target anchor name; empty string scrolls to the top.
Trait Implementations§
Source§impl Clone for RichTextAnchorLink
impl Clone for RichTextAnchorLink
Source§fn clone(&self) -> RichTextAnchorLink
fn clone(&self) -> RichTextAnchorLink
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 RichTextAnchorLink
impl Debug for RichTextAnchorLink
Source§impl<'de> Deserialize<'de> for RichTextAnchorLink
impl<'de> Deserialize<'de> for RichTextAnchorLink
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 RichTextAnchorLink
impl RefUnwindSafe for RichTextAnchorLink
impl Send for RichTextAnchorLink
impl Sync for RichTextAnchorLink
impl Unpin for RichTextAnchorLink
impl UnsafeUnpin for RichTextAnchorLink
impl UnwindSafe for RichTextAnchorLink
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