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
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SlackMemberJoinedChannelEvent
Auto Trait Implementations§
impl Freeze for SlackMemberJoinedChannelEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)