pub struct SlackDraft {
pub id: Uuid,
pub workspace: String,
pub conversation: String,
pub conversation_label: String,
pub thread_ts: Option<String>,
pub text: String,
pub operation: SlackDraftOperation,
pub thread: Option<SlackThreadName>,
pub tagged: Vec<SlackPerson>,
}Expand description
A composed but unsent Slack message. The workspace holds it until the user approves it in the dock prompt; nothing reaches Slack otherwise.
Fields§
§id: Uuid§workspace: String§conversation: String§conversation_label: StringDisplay name for the conversation, which the approval prompt shows in place of the id: the DM partner’s id when Slack names none.
thread_ts: Option<String>None posts a root message; Some(ts) replies into that thread.
text: String§operation: SlackDraftOperationWhat the draft would do, which the approval prompt’s verbs follow: the MCP tool alone cannot tell an edit from a delete, and the card must not say “post” for either.
thread: Option<SlackThreadName>The thread named for the card. None on a root message, and None
when the parent could not be read: nothing is named that was not read.
tagged: Vec<SlackPerson>Every person the draft’s text tags, in order of first appearance. A mention the lookup could not name keeps its id, so no tag is dropped.
Trait Implementations§
Source§impl Clone for SlackDraft
impl Clone for SlackDraft
Source§impl Debug for SlackDraft
impl Debug for SlackDraft
Source§impl<'de> Deserialize<'de> for SlackDraft
impl<'de> Deserialize<'de> for SlackDraft
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>,
impl Eq for SlackDraft
Source§impl PartialEq for SlackDraft
impl PartialEq for SlackDraft
Source§impl Serialize for SlackDraft
impl Serialize for SlackDraft
impl StructuralPartialEq for SlackDraft
Auto Trait Implementations§
impl Freeze for SlackDraft
impl RefUnwindSafe for SlackDraft
impl Send for SlackDraft
impl Sync for SlackDraft
impl Unpin for SlackDraft
impl UnsafeUnpin for SlackDraft
impl UnwindSafe for SlackDraft
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.