pub struct SlackMemberLeftChannelEvent {
pub user: SlackUserId,
pub channel: SlackChannelId,
pub channel_type: SlackChannelType,
pub team: SlackTeamId,
}Fields§
§user: SlackUserId§channel: SlackChannelId§channel_type: SlackChannelType§team: SlackTeamIdImplementations§
Source§impl SlackMemberLeftChannelEvent
impl SlackMemberLeftChannelEvent
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 SlackMemberLeftChannelEvent 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.
Trait Implementations§
Source§impl Clone for SlackMemberLeftChannelEvent
impl Clone for SlackMemberLeftChannelEvent
Source§impl Debug for SlackMemberLeftChannelEvent
impl Debug for SlackMemberLeftChannelEvent
Source§impl<'de> Deserialize<'de> for SlackMemberLeftChannelEvent
impl<'de> Deserialize<'de> for SlackMemberLeftChannelEvent
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<SlackMemberLeftChannelEventInit> for SlackMemberLeftChannelEvent
impl From<SlackMemberLeftChannelEventInit> for SlackMemberLeftChannelEvent
Source§fn from(value: SlackMemberLeftChannelEventInit) -> Self
fn from(value: SlackMemberLeftChannelEventInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackMemberLeftChannelEvent
Auto Trait Implementations§
impl Freeze for SlackMemberLeftChannelEvent
impl RefUnwindSafe for SlackMemberLeftChannelEvent
impl Send for SlackMemberLeftChannelEvent
impl Sync for SlackMemberLeftChannelEvent
impl Unpin for SlackMemberLeftChannelEvent
impl UnsafeUnpin for SlackMemberLeftChannelEvent
impl UnwindSafe for SlackMemberLeftChannelEvent
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