pub struct RichTextLink { /* private fields */ }Expand description
A hyperlink inside rich text.
Implementations§
Source§impl RichTextLink
impl RichTextLink
Sourcepub fn builder() -> RichTextLinkBuilder
pub fn builder() -> RichTextLinkBuilder
Starts a builder with the documented model defaults.
Sourcepub fn into_builder(self) -> RichTextLinkBuilder
pub fn into_builder(self) -> RichTextLinkBuilder
Moves every field into an editable builder, preserving explicit omissions.
Sourcepub fn text(&self) -> Option<&str>
pub fn text(&self) -> Option<&str>
Borrows or copies text. Sets the visible link text. Slack shows the URL when omitted.
Sourcepub fn style(&self) -> Option<&RichTextStyle>
pub fn style(&self) -> Option<&RichTextStyle>
Borrows or copies style. Sets the visual style.
Sourcepub fn unsafe(&self) -> Option<bool>
pub fn unsafe(&self) -> Option<bool>
Borrows or copies unsafe. Sets whether Slack treats the link as unsafe.
Sourcepub fn extensions(&self) -> &Map<String, Value>
pub fn extensions(&self) -> &Map<String, Value>
Borrows checked, unmodeled JSON extension fields.
Trait Implementations§
Source§impl Clone for RichTextLink
impl Clone for RichTextLink
Source§impl Debug for RichTextLink
impl Debug for RichTextLink
Source§impl<'de> Deserialize<'de> for RichTextLink
impl<'de> Deserialize<'de> for RichTextLink
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RichTextLink> for RichTextSectionElement
impl From<RichTextLink> for RichTextSectionElement
Source§fn from(value: RichTextLink) -> Self
fn from(value: RichTextLink) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RichTextLink
impl PartialEq for RichTextLink
Source§impl Serialize for RichTextLink
impl Serialize for RichTextLink
impl StructuralPartialEq for RichTextLink
Source§impl TryFrom<Value> for RichTextLink
impl TryFrom<Value> for RichTextLink
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for RichTextLink
impl Freeze for RichTextLink
impl Move for RichTextLink
impl RefUnwindSafe for RichTextLink
impl Send for RichTextLink
impl Sync for RichTextLink
impl Unpin for RichTextLink
impl UnsafeUnpin for RichTextLink
impl UnwindSafe for RichTextLink
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