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
sourceimpl SlackChannelInfo
impl SlackChannelInfo
pub fn new(
id: SlackChannelId,
created: SlackDateTime,
flags: SlackChannelFlags,
last_state: SlackChannelCurrentState
) -> Self
pub fn id(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_id(self, value: SlackChannelId) -> Self
pub fn created(&mut self, value: SlackDateTime) -> &mut Self
pub fn with_created(self, value: SlackDateTime) -> Self
pub fn creator(&mut self, value: SlackUserId) -> &mut Self
pub fn reset_creator(&mut self) -> &mut Self
pub fn mopt_creator(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn with_creator(self, value: SlackUserId) -> Self
pub fn without_creator(self) -> Self
pub fn opt_creator(self, value: Option<SlackUserId>) -> Self
pub fn name_normalized(&mut self, value: String) -> &mut Self
pub fn reset_name_normalized(&mut self) -> &mut Self
pub fn mopt_name_normalized(&mut self, value: Option<String>) -> &mut Self
pub fn with_name_normalized(self, value: String) -> Self
pub fn without_name_normalized(self) -> Self
pub fn opt_name_normalized(self, value: Option<String>) -> Self
pub fn topic(&mut self, value: SlackChannelTopicInfo) -> &mut Self
pub fn reset_topic(&mut self) -> &mut Self
pub fn mopt_topic(&mut self, value: Option<SlackChannelTopicInfo>) -> &mut Self
pub fn with_topic(self, value: SlackChannelTopicInfo) -> Self
pub fn without_topic(self) -> Self
pub fn opt_topic(self, value: Option<SlackChannelTopicInfo>) -> Self
pub fn purpose(&mut self, value: SlackChannelPurposeInfo) -> &mut Self
pub fn reset_purpose(&mut self) -> &mut Self
pub fn mopt_purpose(
&mut self,
value: Option<SlackChannelPurposeInfo>
) -> &mut Self
pub fn with_purpose(self, value: SlackChannelPurposeInfo) -> Self
pub fn without_purpose(self) -> Self
pub fn opt_purpose(self, value: Option<SlackChannelPurposeInfo>) -> Self
pub fn previous_names(&mut self, value: Vec<String>) -> &mut Self
pub fn reset_previous_names(&mut self) -> &mut Self
pub fn mopt_previous_names(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn with_previous_names(self, value: Vec<String>) -> Self
pub fn without_previous_names(self) -> Self
pub fn opt_previous_names(self, value: Option<Vec<String>>) -> Self
pub fn priority(&mut self, value: SlackChannelPriority) -> &mut Self
pub fn reset_priority(&mut self) -> &mut Self
pub fn mopt_priority(&mut self, value: Option<SlackChannelPriority>) -> &mut Self
pub fn with_priority(self, value: SlackChannelPriority) -> Self
pub fn without_priority(self) -> Self
pub fn opt_priority(self, value: Option<SlackChannelPriority>) -> Self
pub fn num_members(&mut self, value: u64) -> &mut Self
pub fn reset_num_members(&mut self) -> &mut Self
pub fn mopt_num_members(&mut self, value: Option<u64>) -> &mut Self
pub fn with_num_members(self, value: u64) -> Self
pub fn without_num_members(self) -> Self
pub fn opt_num_members(self, value: Option<u64>) -> Self
pub fn locale(&mut self, value: SlackLocale) -> &mut Self
pub fn reset_locale(&mut self) -> &mut Self
pub fn mopt_locale(&mut self, value: Option<SlackLocale>) -> &mut Self
pub fn with_locale(self, value: SlackLocale) -> Self
pub fn without_locale(self) -> Self
pub fn opt_locale(self, value: Option<SlackLocale>) -> Self
pub fn flags(&mut self, value: SlackChannelFlags) -> &mut Self
pub fn with_flags(self, value: SlackChannelFlags) -> Self
pub fn last_state(&mut self, value: SlackChannelCurrentState) -> &mut Self
pub fn with_last_state(self, value: SlackChannelCurrentState) -> Self
Trait Implementations
sourceimpl Clone for SlackChannelInfo
impl Clone for SlackChannelInfo
sourcefn clone(&self) -> SlackChannelInfo
fn clone(&self) -> SlackChannelInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SlackChannelInfo
impl Debug for SlackChannelInfo
sourceimpl<'de> Deserialize<'de> for SlackChannelInfo
impl<'de> Deserialize<'de> for SlackChannelInfo
sourcefn 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
sourceimpl From<SlackChannelInfoInit> for SlackChannelInfo
impl From<SlackChannelInfoInit> for SlackChannelInfo
sourcefn from(value: SlackChannelInfoInit) -> Self
fn from(value: SlackChannelInfoInit) -> Self
Converts to this type from the input type.
sourceimpl HasChannelInfo for SlackChannelInfo
impl HasChannelInfo for SlackChannelInfo
fn get_channel_id(&self) -> &SlackChannelId
sourceimpl PartialEq<SlackChannelInfo> for SlackChannelInfo
impl PartialEq<SlackChannelInfo> for SlackChannelInfo
sourcefn eq(&self, other: &SlackChannelInfo) -> bool
fn eq(&self, other: &SlackChannelInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SlackChannelInfo) -> bool
fn ne(&self, other: &SlackChannelInfo) -> bool
This method tests for !=
.
sourceimpl Serialize for SlackChannelInfo
impl Serialize for SlackChannelInfo
impl StructuralPartialEq for SlackChannelInfo
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more