Struct slack_morphism::prelude::SlackChannelInfo [−][src]
pub struct SlackChannelInfo {
pub id: SlackChannelId,
pub created: SlackDateTime,
pub creator: Option<SlackUserId>,
pub name_normalized: Option<String>,
pub topic: Option<SlackChannelDetails>,
pub purpose: Option<SlackChannelDetails>,
pub previous_names: Option<Vec<String, Global>>,
pub priority: Option<SlackChannelPriority>,
pub num_members: Option<u64>,
pub locale: Option<SlackLocale>,
pub flags: SlackChannelFlags,
pub last_state: SlackChannelCurrentState,
}
Fields
id: SlackChannelId
created: SlackDateTime
creator: Option<SlackUserId>
name_normalized: Option<String>
topic: Option<SlackChannelDetails>
purpose: Option<SlackChannelDetails>
previous_names: Option<Vec<String, Global>>
priority: Option<SlackChannelPriority>
num_members: Option<u64>
locale: Option<SlackLocale>
flags: SlackChannelFlags
last_state: SlackChannelCurrentState
Implementations
pub fn new(
id: SlackChannelId,
created: SlackDateTime,
flags: SlackChannelFlags,
last_state: SlackChannelCurrentState
) -> SlackChannelInfo
pub fn mopt_previous_names(
&mut self,
value: Option<Vec<String, Global>>
) -> &mut SlackChannelInfo
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackChannelInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackChannelInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SlackChannelInfo
impl Send for SlackChannelInfo
impl Sync for SlackChannelInfo
impl Unpin for SlackChannelInfo
impl UnwindSafe for SlackChannelInfo
Blanket Implementations
Mutably borrows from an owned value. Read more