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