Struct slack_morphism::SlackMessageOrigin
source · pub struct SlackMessageOrigin {
pub ts: SlackTs,
pub channel: Option<SlackChannelId>,
pub channel_type: Option<SlackChannelType>,
pub thread_ts: Option<SlackTs>,
pub client_msg_id: Option<SlackClientMessageId>,
}
Fields§
§ts: SlackTs
§channel: Option<SlackChannelId>
§channel_type: Option<SlackChannelType>
§thread_ts: Option<SlackTs>
§client_msg_id: Option<SlackClientMessageId>
Implementations§
source§impl SlackMessageOrigin
impl SlackMessageOrigin
pub fn new(ts: SlackTs) -> Self
pub fn ts(&mut self, value: SlackTs) -> &mut Self
pub fn with_ts(self, value: SlackTs) -> Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn reset_channel(&mut self) -> &mut Self
pub fn mopt_channel(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn with_channel(self, value: SlackChannelId) -> Self
pub fn without_channel(self) -> Self
pub fn opt_channel(self, value: Option<SlackChannelId>) -> Self
pub fn channel_type(&mut self, value: SlackChannelType) -> &mut Self
pub fn reset_channel_type(&mut self) -> &mut Self
pub fn mopt_channel_type( &mut self, value: Option<SlackChannelType> ) -> &mut Self
pub fn with_channel_type(self, value: SlackChannelType) -> Self
pub fn without_channel_type(self) -> Self
pub fn opt_channel_type(self, value: Option<SlackChannelType>) -> Self
pub fn thread_ts(&mut self, value: SlackTs) -> &mut Self
pub fn reset_thread_ts(&mut self) -> &mut Self
pub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn without_thread_ts(self) -> Self
pub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
pub fn client_msg_id(&mut self, value: SlackClientMessageId) -> &mut Self
pub fn reset_client_msg_id(&mut self) -> &mut Self
pub fn mopt_client_msg_id( &mut self, value: Option<SlackClientMessageId> ) -> &mut Self
pub fn with_client_msg_id(self, value: SlackClientMessageId) -> Self
pub fn without_client_msg_id(self) -> Self
pub fn opt_client_msg_id(self, value: Option<SlackClientMessageId>) -> Self
Trait Implementations§
source§impl Clone for SlackMessageOrigin
impl Clone for SlackMessageOrigin
source§fn clone(&self) -> SlackMessageOrigin
fn clone(&self) -> SlackMessageOrigin
Returns a copy 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 SlackMessageOrigin
impl Debug for SlackMessageOrigin
source§impl<'de> Deserialize<'de> for SlackMessageOrigin
impl<'de> Deserialize<'de> for SlackMessageOrigin
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<SlackMessageOriginInit> for SlackMessageOrigin
impl From<SlackMessageOriginInit> for SlackMessageOrigin
source§fn from(value: SlackMessageOriginInit) -> Self
fn from(value: SlackMessageOriginInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackMessageOrigin
impl PartialEq for SlackMessageOrigin
source§fn eq(&self, other: &SlackMessageOrigin) -> bool
fn eq(&self, other: &SlackMessageOrigin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackMessageOrigin
impl Serialize for SlackMessageOrigin
impl StructuralPartialEq for SlackMessageOrigin
Auto Trait Implementations§
impl RefUnwindSafe for SlackMessageOrigin
impl Send for SlackMessageOrigin
impl Sync for SlackMessageOrigin
impl Unpin for SlackMessageOrigin
impl UnwindSafe for SlackMessageOrigin
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