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