Struct slack_morphism::prelude::SlackBasicChannelInfo
source · pub struct SlackBasicChannelInfo {
pub id: SlackChannelId,
pub name: Option<String>,
}Fields§
§id: SlackChannelId§name: Option<String>Implementations§
source§impl SlackBasicChannelInfo
impl SlackBasicChannelInfo
pub fn new(id: SlackChannelId) -> Self
pub fn id(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_id(self, value: SlackChannelId) -> Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
pub fn mopt_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_name(self, value: String) -> Self
pub fn without_name(self) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
Trait Implementations§
source§impl Clone for SlackBasicChannelInfo
impl Clone for SlackBasicChannelInfo
source§fn clone(&self) -> SlackBasicChannelInfo
fn clone(&self) -> SlackBasicChannelInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SlackBasicChannelInfo
impl Debug for SlackBasicChannelInfo
source§impl<'de> Deserialize<'de> for SlackBasicChannelInfo
impl<'de> Deserialize<'de> for SlackBasicChannelInfo
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<SlackBasicChannelInfoInit> for SlackBasicChannelInfo
impl From<SlackBasicChannelInfoInit> for SlackBasicChannelInfo
source§fn from(value: SlackBasicChannelInfoInit) -> Self
fn from(value: SlackBasicChannelInfoInit) -> Self
Converts to this type from the input type.