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
Sourcepub fn new(
user: SlackUserId,
channel: SlackChannelId,
channel_type: SlackChannelType,
team: SlackTeamId,
) -> Self
pub fn new( user: SlackUserId, channel: SlackChannelId, channel_type: SlackChannelType, team: SlackTeamId, ) -> Self
Creates a new SlackMemberJoinedChannelEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
Sets user to value.
Sourcepub fn with_user(self, value: SlackUserId) -> Self
pub fn with_user(self, value: SlackUserId) -> Self
Returns self with user set to value.
Sourcepub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
Sets channel to value.
Sourcepub fn with_channel(self, value: SlackChannelId) -> Self
pub fn with_channel(self, value: SlackChannelId) -> Self
Returns self with channel set to value.
Sourcepub fn channel_type(&mut self, value: SlackChannelType) -> &mut Self
pub fn channel_type(&mut self, value: SlackChannelType) -> &mut Self
Sets channel_type to value.
Sourcepub fn with_channel_type(self, value: SlackChannelType) -> Self
pub fn with_channel_type(self, value: SlackChannelType) -> Self
Returns self with channel_type set to value.
Sourcepub fn team(&mut self, value: SlackTeamId) -> &mut Self
pub fn team(&mut self, value: SlackTeamId) -> &mut Self
Sets team to value.
Sourcepub fn with_team(self, value: SlackTeamId) -> Self
pub fn with_team(self, value: SlackTeamId) -> Self
Returns self with team set to value.
Sourcepub fn inviter(&mut self, value: SlackUserId) -> &mut Self
pub fn inviter(&mut self, value: SlackUserId) -> &mut Self
Sets inviter to Some(value).
Sourcepub fn reset_inviter(&mut self) -> &mut Self
pub fn reset_inviter(&mut self) -> &mut Self
Sets inviter to None.
Sourcepub fn mopt_inviter(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn mopt_inviter(&mut self, value: Option<SlackUserId>) -> &mut Self
Sets inviter to the given Option.
Sourcepub fn with_inviter(self, value: SlackUserId) -> Self
pub fn with_inviter(self, value: SlackUserId) -> Self
Returns self with inviter set to Some(value).
Sourcepub fn without_inviter(self) -> Self
pub fn without_inviter(self) -> Self
Returns self with inviter set to None.
Sourcepub fn opt_inviter(self, value: Option<SlackUserId>) -> Self
pub fn opt_inviter(self, value: Option<SlackUserId>) -> Self
Returns self with inviter set to the given Option.
Trait Implementations§
Source§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.
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 UnsafeUnpin 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