pub struct SlackRichTextLink {
pub url: Url,
pub text: Option<String>,
pub unsafe_: Option<bool>,
pub style: Option<SlackRichTextStyle>,
}Fields§
§url: Url§text: Option<String>§unsafe_: Option<bool>§style: Option<SlackRichTextStyle>Implementations§
Source§impl SlackRichTextLink
impl SlackRichTextLink
pub fn new(url: Url) -> Self
pub fn url(&mut self, value: Url) -> &mut Self
pub fn with_url(self, value: Url) -> Self
pub fn text(&mut self, value: String) -> &mut Self
pub fn reset_text(&mut self) -> &mut Self
pub fn mopt_text(&mut self, value: Option<String>) -> &mut Self
pub fn with_text(self, value: String) -> Self
pub fn without_text(self) -> Self
pub fn opt_text(self, value: Option<String>) -> Self
pub fn unsafe_(&mut self, value: bool) -> &mut Self
pub fn reset_unsafe_(&mut self) -> &mut Self
pub fn mopt_unsafe_(&mut self, value: Option<bool>) -> &mut Self
pub fn with_unsafe_(self, value: bool) -> Self
pub fn without_unsafe_(self) -> Self
pub fn opt_unsafe_(self, value: Option<bool>) -> Self
pub fn style(&mut self, value: SlackRichTextStyle) -> &mut Self
pub fn reset_style(&mut self) -> &mut Self
pub fn mopt_style(&mut self, value: Option<SlackRichTextStyle>) -> &mut Self
pub fn with_style(self, value: SlackRichTextStyle) -> Self
pub fn without_style(self) -> Self
pub fn opt_style(self, value: Option<SlackRichTextStyle>) -> Self
Trait Implementations§
Source§impl Clone for SlackRichTextLink
impl Clone for SlackRichTextLink
Source§fn clone(&self) -> SlackRichTextLink
fn clone(&self) -> SlackRichTextLink
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 SlackRichTextLink
impl Debug for SlackRichTextLink
Source§impl<'de> Deserialize<'de> for SlackRichTextLink
impl<'de> Deserialize<'de> for SlackRichTextLink
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
Source§impl From<SlackRichTextLinkInit> for SlackRichTextLink
impl From<SlackRichTextLinkInit> for SlackRichTextLink
Source§fn from(value: SlackRichTextLinkInit) -> Self
fn from(value: SlackRichTextLinkInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackRichTextLink
impl PartialEq for SlackRichTextLink
Source§impl Serialize for SlackRichTextLink
impl Serialize for SlackRichTextLink
impl StructuralPartialEq for SlackRichTextLink
Auto Trait Implementations§
impl Freeze for SlackRichTextLink
impl RefUnwindSafe for SlackRichTextLink
impl Send for SlackRichTextLink
impl Sync for SlackRichTextLink
impl Unpin for SlackRichTextLink
impl UnsafeUnpin for SlackRichTextLink
impl UnwindSafe for SlackRichTextLink
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