pub struct SlackApiConversationsLeaveResponse {
pub not_in_channel: Option<bool>,
}Fields§
§not_in_channel: Option<bool>Implementations§
Source§impl SlackApiConversationsLeaveResponse
impl SlackApiConversationsLeaveResponse
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiConversationsLeaveResponse from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn not_in_channel(&mut self, value: bool) -> &mut Self
pub fn not_in_channel(&mut self, value: bool) -> &mut Self
Sets not_in_channel to Some(value).
Sourcepub fn reset_not_in_channel(&mut self) -> &mut Self
pub fn reset_not_in_channel(&mut self) -> &mut Self
Sets not_in_channel to None.
Sourcepub fn mopt_not_in_channel(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_not_in_channel(&mut self, value: Option<bool>) -> &mut Self
Sets not_in_channel to the given Option.
Sourcepub fn with_not_in_channel(self, value: bool) -> Self
pub fn with_not_in_channel(self, value: bool) -> Self
Returns self with not_in_channel set to Some(value).
Sourcepub fn without_not_in_channel(self) -> Self
pub fn without_not_in_channel(self) -> Self
Returns self with not_in_channel set to None.
Sourcepub fn opt_not_in_channel(self, value: Option<bool>) -> Self
pub fn opt_not_in_channel(self, value: Option<bool>) -> Self
Returns self with not_in_channel set to the given Option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiConversationsLeaveResponse
impl<'de> Deserialize<'de> for SlackApiConversationsLeaveResponse
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<SlackApiConversationsLeaveResponseInit> for SlackApiConversationsLeaveResponse
impl From<SlackApiConversationsLeaveResponseInit> for SlackApiConversationsLeaveResponse
Source§fn from(value: SlackApiConversationsLeaveResponseInit) -> Self
fn from(value: SlackApiConversationsLeaveResponseInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiConversationsLeaveResponse
Auto Trait Implementations§
impl Freeze for SlackApiConversationsLeaveResponse
impl RefUnwindSafe for SlackApiConversationsLeaveResponse
impl Send for SlackApiConversationsLeaveResponse
impl Sync for SlackApiConversationsLeaveResponse
impl Unpin for SlackApiConversationsLeaveResponse
impl UnsafeUnpin for SlackApiConversationsLeaveResponse
impl UnwindSafe for SlackApiConversationsLeaveResponse
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