Struct slack_morphism::events::SlackChannelArchiveEvent
source · pub struct SlackChannelArchiveEvent {
pub channel: SlackChannelId,
pub user: SlackUserId,
}
Fields§
§channel: SlackChannelId
§user: SlackUserId
Implementations§
source§impl SlackChannelArchiveEvent
impl SlackChannelArchiveEvent
pub fn new(channel: SlackChannelId, user: SlackUserId) -> Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_channel(self, value: SlackChannelId) -> Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn with_user(self, value: SlackUserId) -> Self
Trait Implementations§
source§impl Clone for SlackChannelArchiveEvent
impl Clone for SlackChannelArchiveEvent
source§fn clone(&self) -> SlackChannelArchiveEvent
fn clone(&self) -> SlackChannelArchiveEvent
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 SlackChannelArchiveEvent
impl Debug for SlackChannelArchiveEvent
source§impl<'de> Deserialize<'de> for SlackChannelArchiveEvent
impl<'de> Deserialize<'de> for SlackChannelArchiveEvent
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<SlackChannelArchiveEventInit> for SlackChannelArchiveEvent
impl From<SlackChannelArchiveEventInit> for SlackChannelArchiveEvent
source§fn from(value: SlackChannelArchiveEventInit) -> Self
fn from(value: SlackChannelArchiveEventInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackChannelArchiveEvent
impl PartialEq for SlackChannelArchiveEvent
source§fn eq(&self, other: &SlackChannelArchiveEvent) -> bool
fn eq(&self, other: &SlackChannelArchiveEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackChannelArchiveEvent
impl Serialize for SlackChannelArchiveEvent
impl StructuralPartialEq for SlackChannelArchiveEvent
Auto Trait Implementations§
impl RefUnwindSafe for SlackChannelArchiveEvent
impl Send for SlackChannelArchiveEvent
impl Sync for SlackChannelArchiveEvent
impl Unpin for SlackChannelArchiveEvent
impl UnwindSafe for SlackChannelArchiveEvent
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