pub struct RichTextElementLink {
pub url: String,
pub text: Option<String>,
pub unsafe_: Option<bool>,
pub style: Option<RichTextStyle>,
}Expand description
The following are the properties of the link object type in the elements array.
Fields§
§url: StringThe link’s url.
text: Option<String>The text shown to the user (instead of the url).
unsafe_: Option<bool>Indicates whether the link is safe.
style: Option<RichTextStyle>An object containing four boolean properties: bold, italic, strike, and code.
Trait Implementations§
Source§impl Clone for RichTextElementLink
impl Clone for RichTextElementLink
Source§fn clone(&self) -> RichTextElementLink
fn clone(&self) -> RichTextElementLink
Returns a duplicate of the value. Read more
1.0.0 · 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 RichTextElementLink
impl Debug for RichTextElementLink
Auto Trait Implementations§
impl Freeze for RichTextElementLink
impl RefUnwindSafe for RichTextElementLink
impl Send for RichTextElementLink
impl Sync for RichTextElementLink
impl Unpin for RichTextElementLink
impl UnwindSafe for RichTextElementLink
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