pub struct SlackMemberJoinedChannelEvent {
pub user: SlackUserId,
pub channel: SlackChannelId,
pub channel_type: SlackChannelType,
pub team: SlackTeamId,
pub inviter: Option<SlackUserId>,
}
Fields§
§user: SlackUserId
§channel: SlackChannelId
§channel_type: SlackChannelType
§team: SlackTeamId
§inviter: Option<SlackUserId>
Implementations§
source§impl SlackMemberJoinedChannelEvent
impl SlackMemberJoinedChannelEvent
pub fn new( user: SlackUserId, channel: SlackChannelId, channel_type: SlackChannelType, team: SlackTeamId ) -> Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn with_user(self, value: SlackUserId) -> Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_channel(self, value: SlackChannelId) -> Self
pub fn channel_type(&mut self, value: SlackChannelType) -> &mut Self
pub fn with_channel_type(self, value: SlackChannelType) -> Self
pub fn team(&mut self, value: SlackTeamId) -> &mut Self
pub fn with_team(self, value: SlackTeamId) -> Self
pub fn inviter(&mut self, value: SlackUserId) -> &mut Self
pub fn reset_inviter(&mut self) -> &mut Self
pub fn mopt_inviter(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn with_inviter(self, value: SlackUserId) -> Self
pub fn without_inviter(self) -> Self
pub fn opt_inviter(self, value: Option<SlackUserId>) -> Self
Trait Implementations§
source§impl Clone for SlackMemberJoinedChannelEvent
impl Clone for SlackMemberJoinedChannelEvent
source§fn clone(&self) -> SlackMemberJoinedChannelEvent
fn clone(&self) -> SlackMemberJoinedChannelEvent
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<'de> Deserialize<'de> for SlackMemberJoinedChannelEvent
impl<'de> Deserialize<'de> for SlackMemberJoinedChannelEvent
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<SlackMemberJoinedChannelEventInit> for SlackMemberJoinedChannelEvent
impl From<SlackMemberJoinedChannelEventInit> for SlackMemberJoinedChannelEvent
source§fn from(value: SlackMemberJoinedChannelEventInit) -> Self
fn from(value: SlackMemberJoinedChannelEventInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackMemberJoinedChannelEvent
impl PartialEq for SlackMemberJoinedChannelEvent
source§fn eq(&self, other: &SlackMemberJoinedChannelEvent) -> bool
fn eq(&self, other: &SlackMemberJoinedChannelEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackMemberJoinedChannelEvent
Auto Trait Implementations§
impl RefUnwindSafe for SlackMemberJoinedChannelEvent
impl Send for SlackMemberJoinedChannelEvent
impl Sync for SlackMemberJoinedChannelEvent
impl Unpin for SlackMemberJoinedChannelEvent
impl UnwindSafe for SlackMemberJoinedChannelEvent
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