pub struct SlackChannelInfo {Show 13 fields
pub id: SlackChannelId,
pub created: SlackDateTime,
pub creator: Option<SlackUserId>,
pub name: Option<String>,
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: Option<String>§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: SlackChannelCurrentStateImplementations§
Source§impl SlackChannelInfo
impl SlackChannelInfo
Sourcepub fn new(
id: SlackChannelId,
created: SlackDateTime,
flags: SlackChannelFlags,
last_state: SlackChannelCurrentState,
) -> Self
pub fn new( id: SlackChannelId, created: SlackDateTime, flags: SlackChannelFlags, last_state: SlackChannelCurrentState, ) -> Self
Creates a new SlackChannelInfo from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn id(&mut self, value: SlackChannelId) -> &mut Self
pub fn id(&mut self, value: SlackChannelId) -> &mut Self
Sets id to value.
Sourcepub fn with_id(self, value: SlackChannelId) -> Self
pub fn with_id(self, value: SlackChannelId) -> Self
Returns self with id set to value.
Sourcepub fn created(&mut self, value: SlackDateTime) -> &mut Self
pub fn created(&mut self, value: SlackDateTime) -> &mut Self
Sets created to value.
Sourcepub fn with_created(self, value: SlackDateTime) -> Self
pub fn with_created(self, value: SlackDateTime) -> Self
Returns self with created set to value.
Sourcepub fn creator(&mut self, value: SlackUserId) -> &mut Self
pub fn creator(&mut self, value: SlackUserId) -> &mut Self
Sets creator to Some(value).
Sourcepub fn reset_creator(&mut self) -> &mut Self
pub fn reset_creator(&mut self) -> &mut Self
Sets creator to None.
Sourcepub fn mopt_creator(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn mopt_creator(&mut self, value: Option<SlackUserId>) -> &mut Self
Sets creator to the given Option.
Sourcepub fn with_creator(self, value: SlackUserId) -> Self
pub fn with_creator(self, value: SlackUserId) -> Self
Returns self with creator set to Some(value).
Sourcepub fn without_creator(self) -> Self
pub fn without_creator(self) -> Self
Returns self with creator set to None.
Sourcepub fn opt_creator(self, value: Option<SlackUserId>) -> Self
pub fn opt_creator(self, value: Option<SlackUserId>) -> Self
Returns self with creator set to the given Option.
Sourcepub fn reset_name(&mut self) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
Sets name to None.
Sourcepub fn without_name(self) -> Self
pub fn without_name(self) -> Self
Returns self with name set to None.
Sourcepub fn opt_name(self, value: Option<String>) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
Returns self with name set to the given Option.
Sourcepub fn name_normalized(&mut self, value: String) -> &mut Self
pub fn name_normalized(&mut self, value: String) -> &mut Self
Sets name_normalized to Some(value).
Sourcepub fn reset_name_normalized(&mut self) -> &mut Self
pub fn reset_name_normalized(&mut self) -> &mut Self
Sets name_normalized to None.
Sourcepub fn mopt_name_normalized(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_name_normalized(&mut self, value: Option<String>) -> &mut Self
Sets name_normalized to the given Option.
Sourcepub fn with_name_normalized(self, value: String) -> Self
pub fn with_name_normalized(self, value: String) -> Self
Returns self with name_normalized set to Some(value).
Sourcepub fn without_name_normalized(self) -> Self
pub fn without_name_normalized(self) -> Self
Returns self with name_normalized set to None.
Sourcepub fn opt_name_normalized(self, value: Option<String>) -> Self
pub fn opt_name_normalized(self, value: Option<String>) -> Self
Returns self with name_normalized set to the given Option.
Sourcepub fn topic(&mut self, value: SlackChannelTopicInfo) -> &mut Self
pub fn topic(&mut self, value: SlackChannelTopicInfo) -> &mut Self
Sets topic to Some(value).
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<SlackChannelTopicInfo>) -> &mut Self
pub fn mopt_topic(&mut self, value: Option<SlackChannelTopicInfo>) -> &mut Self
Sets topic to the given Option.
Sourcepub fn with_topic(self, value: SlackChannelTopicInfo) -> Self
pub fn with_topic(self, value: SlackChannelTopicInfo) -> 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.
Sourcepub fn opt_topic(self, value: Option<SlackChannelTopicInfo>) -> Self
pub fn opt_topic(self, value: Option<SlackChannelTopicInfo>) -> Self
Returns self with topic set to the given Option.
Sourcepub fn purpose(&mut self, value: SlackChannelPurposeInfo) -> &mut Self
pub fn purpose(&mut self, value: SlackChannelPurposeInfo) -> &mut Self
Sets purpose to Some(value).
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<SlackChannelPurposeInfo>,
) -> &mut Self
pub fn mopt_purpose( &mut self, value: Option<SlackChannelPurposeInfo>, ) -> &mut Self
Sets purpose to the given Option.
Sourcepub fn with_purpose(self, value: SlackChannelPurposeInfo) -> Self
pub fn with_purpose(self, value: SlackChannelPurposeInfo) -> 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<SlackChannelPurposeInfo>) -> Self
pub fn opt_purpose(self, value: Option<SlackChannelPurposeInfo>) -> Self
Returns self with purpose set to the given Option.
Sourcepub fn previous_names(&mut self, value: Vec<String>) -> &mut Self
pub fn previous_names(&mut self, value: Vec<String>) -> &mut Self
Sets previous_names to Some(value).
Sourcepub fn reset_previous_names(&mut self) -> &mut Self
pub fn reset_previous_names(&mut self) -> &mut Self
Sets previous_names to None.
Sourcepub fn mopt_previous_names(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn mopt_previous_names(&mut self, value: Option<Vec<String>>) -> &mut Self
Sets previous_names to the given Option.
Sourcepub fn with_previous_names(self, value: Vec<String>) -> Self
pub fn with_previous_names(self, value: Vec<String>) -> Self
Returns self with previous_names set to Some(value).
Sourcepub fn without_previous_names(self) -> Self
pub fn without_previous_names(self) -> Self
Returns self with previous_names set to None.
Sourcepub fn opt_previous_names(self, value: Option<Vec<String>>) -> Self
pub fn opt_previous_names(self, value: Option<Vec<String>>) -> Self
Returns self with previous_names set to the given Option.
Sourcepub fn priority(&mut self, value: SlackChannelPriority) -> &mut Self
pub fn priority(&mut self, value: SlackChannelPriority) -> &mut Self
Sets priority to Some(value).
Sourcepub fn reset_priority(&mut self) -> &mut Self
pub fn reset_priority(&mut self) -> &mut Self
Sets priority to None.
Sourcepub fn mopt_priority(
&mut self,
value: Option<SlackChannelPriority>,
) -> &mut Self
pub fn mopt_priority( &mut self, value: Option<SlackChannelPriority>, ) -> &mut Self
Sets priority to the given Option.
Sourcepub fn with_priority(self, value: SlackChannelPriority) -> Self
pub fn with_priority(self, value: SlackChannelPriority) -> Self
Returns self with priority set to Some(value).
Sourcepub fn without_priority(self) -> Self
pub fn without_priority(self) -> Self
Returns self with priority set to None.
Sourcepub fn opt_priority(self, value: Option<SlackChannelPriority>) -> Self
pub fn opt_priority(self, value: Option<SlackChannelPriority>) -> Self
Returns self with priority set to the given Option.
Sourcepub fn num_members(&mut self, value: u64) -> &mut Self
pub fn num_members(&mut self, value: u64) -> &mut Self
Sets num_members to Some(value).
Sourcepub fn reset_num_members(&mut self) -> &mut Self
pub fn reset_num_members(&mut self) -> &mut Self
Sets num_members to None.
Sourcepub fn mopt_num_members(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_num_members(&mut self, value: Option<u64>) -> &mut Self
Sets num_members to the given Option.
Sourcepub fn with_num_members(self, value: u64) -> Self
pub fn with_num_members(self, value: u64) -> Self
Returns self with num_members set to Some(value).
Sourcepub fn without_num_members(self) -> Self
pub fn without_num_members(self) -> Self
Returns self with num_members set to None.
Sourcepub fn opt_num_members(self, value: Option<u64>) -> Self
pub fn opt_num_members(self, value: Option<u64>) -> Self
Returns self with num_members set to the given Option.
Sourcepub fn locale(&mut self, value: SlackLocale) -> &mut Self
pub fn locale(&mut self, value: SlackLocale) -> &mut Self
Sets locale to Some(value).
Sourcepub fn reset_locale(&mut self) -> &mut Self
pub fn reset_locale(&mut self) -> &mut Self
Sets locale to None.
Sourcepub fn mopt_locale(&mut self, value: Option<SlackLocale>) -> &mut Self
pub fn mopt_locale(&mut self, value: Option<SlackLocale>) -> &mut Self
Sets locale to the given Option.
Sourcepub fn with_locale(self, value: SlackLocale) -> Self
pub fn with_locale(self, value: SlackLocale) -> Self
Returns self with locale set to Some(value).
Sourcepub fn without_locale(self) -> Self
pub fn without_locale(self) -> Self
Returns self with locale set to None.
Sourcepub fn opt_locale(self, value: Option<SlackLocale>) -> Self
pub fn opt_locale(self, value: Option<SlackLocale>) -> Self
Returns self with locale set to the given Option.
Sourcepub fn flags(&mut self, value: SlackChannelFlags) -> &mut Self
pub fn flags(&mut self, value: SlackChannelFlags) -> &mut Self
Sets flags to value.
Sourcepub fn with_flags(self, value: SlackChannelFlags) -> Self
pub fn with_flags(self, value: SlackChannelFlags) -> Self
Returns self with flags set to value.
Sourcepub fn last_state(&mut self, value: SlackChannelCurrentState) -> &mut Self
pub fn last_state(&mut self, value: SlackChannelCurrentState) -> &mut Self
Sets last_state to value.
Sourcepub fn with_last_state(self, value: SlackChannelCurrentState) -> Self
pub fn with_last_state(self, value: SlackChannelCurrentState) -> Self
Returns self with last_state set to value.