Struct slack_morphism_models::SlackChannelInfo
source · [−]pub struct SlackChannelInfo {
pub id: SlackChannelId,
pub created: SlackDateTime,
pub creator: Option<SlackUserId>,
pub name_normalized: Option<String>,
pub topic: Option<SlackChannelTopicInfo>,
pub purpose: Option<SlackChannelPurposeInfo>,
pub previous_names: Option<Vec<String>>,
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<SlackChannelTopicInfo>
purpose: Option<SlackChannelPurposeInfo>
previous_names: Option<Vec<String>>
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
) -> Self
Trait Implementations
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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