pub struct WorkflowMentionElement {
pub workflow_id: String,
pub function_trigger_id: String,
pub text: String,
pub url: Option<String>,
pub channel_id: Option<String>,
pub ts: Option<String>,
pub style: Option<RichTextStyle>,
/* private fields */
}Expand description
A link to a workflow. https://docs.slack.dev/reference/block-kit/block-elements/workflow-mention-element
Fields§
§workflow_id: String§function_trigger_id: String§text: String§url: Option<String>§channel_id: Option<String>§ts: Option<String>§style: Option<RichTextStyle>Implementations§
Source§impl WorkflowMentionElement
impl WorkflowMentionElement
pub fn new( workflow_id: impl Into<String>, function_trigger_id: impl Into<String>, text: impl Into<String>, ) -> Self
pub fn url(self, url: impl Into<String>) -> Self
pub fn channel_id(self, channel_id: impl Into<String>) -> Self
pub fn ts(self, ts: impl Into<String>) -> Self
pub fn style(self, style: RichTextStyle) -> Self
Trait Implementations§
Source§impl Clone for WorkflowMentionElement
impl Clone for WorkflowMentionElement
Source§impl Debug for WorkflowMentionElement
impl Debug for WorkflowMentionElement
Source§impl<'de> Deserialize<'de> for WorkflowMentionElement
impl<'de> Deserialize<'de> for WorkflowMentionElement
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<WorkflowMentionElement> for RichTextElement
impl From<WorkflowMentionElement> for RichTextElement
Source§fn from(value: WorkflowMentionElement) -> Self
fn from(value: WorkflowMentionElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkflowMentionElement
impl PartialEq for WorkflowMentionElement
Source§impl Serialize for WorkflowMentionElement
impl Serialize for WorkflowMentionElement
impl StructuralPartialEq for WorkflowMentionElement
Auto Trait Implementations§
impl Freeze for WorkflowMentionElement
impl RefUnwindSafe for WorkflowMentionElement
impl Send for WorkflowMentionElement
impl Sync for WorkflowMentionElement
impl Unpin for WorkflowMentionElement
impl UnsafeUnpin for WorkflowMentionElement
impl UnwindSafe for WorkflowMentionElement
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