Struct slack_morphism::prelude::SlackChannelInfo
source · [−]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: SlackChannelIdcreated: SlackDateTimecreator: 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: SlackChannelFlagslast_state: SlackChannelCurrentStateImplementations
sourceimpl SlackChannelInfo
impl SlackChannelInfo
pub fn new(
id: SlackChannelId,
created: SlackDateTime,
flags: SlackChannelFlags,
last_state: SlackChannelCurrentState
) -> SlackChannelInfo
pub fn id(&mut self, value: SlackChannelId) -> &mut SlackChannelInfo
pub fn with_id(self, value: SlackChannelId) -> SlackChannelInfo
pub fn created(&mut self, value: SlackDateTime) -> &mut SlackChannelInfo
pub fn with_created(self, value: SlackDateTime) -> SlackChannelInfo
pub fn creator(&mut self, value: SlackUserId) -> &mut SlackChannelInfo
pub fn reset_creator(&mut self) -> &mut SlackChannelInfo
pub fn mopt_creator(
&mut self,
value: Option<SlackUserId>
) -> &mut SlackChannelInfo
pub fn with_creator(self, value: SlackUserId) -> SlackChannelInfo
pub fn without_creator(self) -> SlackChannelInfo
pub fn opt_creator(self, value: Option<SlackUserId>) -> SlackChannelInfo
pub fn name_normalized(&mut self, value: String) -> &mut SlackChannelInfo
pub fn reset_name_normalized(&mut self) -> &mut SlackChannelInfo
pub fn mopt_name_normalized(
&mut self,
value: Option<String>
) -> &mut SlackChannelInfo
pub fn with_name_normalized(self, value: String) -> SlackChannelInfo
pub fn without_name_normalized(self) -> SlackChannelInfo
pub fn opt_name_normalized(self, value: Option<String>) -> SlackChannelInfo
pub fn topic(&mut self, value: SlackChannelDetails) -> &mut SlackChannelInfo
pub fn reset_topic(&mut self) -> &mut SlackChannelInfo
pub fn mopt_topic(
&mut self,
value: Option<SlackChannelDetails>
) -> &mut SlackChannelInfo
pub fn with_topic(self, value: SlackChannelDetails) -> SlackChannelInfo
pub fn without_topic(self) -> SlackChannelInfo
pub fn opt_topic(self, value: Option<SlackChannelDetails>) -> SlackChannelInfo
pub fn purpose(&mut self, value: SlackChannelDetails) -> &mut SlackChannelInfo
pub fn reset_purpose(&mut self) -> &mut SlackChannelInfo
pub fn mopt_purpose(
&mut self,
value: Option<SlackChannelDetails>
) -> &mut SlackChannelInfo
pub fn with_purpose(self, value: SlackChannelDetails) -> SlackChannelInfo
pub fn without_purpose(self) -> SlackChannelInfo
pub fn opt_purpose(self, value: Option<SlackChannelDetails>) -> SlackChannelInfo
pub fn previous_names(
&mut self,
value: Vec<String, Global>
) -> &mut SlackChannelInfo
pub fn reset_previous_names(&mut self) -> &mut SlackChannelInfo
pub fn mopt_previous_names(
&mut self,
value: Option<Vec<String, Global>>
) -> &mut SlackChannelInfo
pub fn with_previous_names(self, value: Vec<String, Global>) -> SlackChannelInfo
pub fn without_previous_names(self) -> SlackChannelInfo
pub fn opt_previous_names(
self,
value: Option<Vec<String, Global>>
) -> SlackChannelInfo
pub fn priority(&mut self, value: SlackChannelPriority) -> &mut SlackChannelInfo
pub fn reset_priority(&mut self) -> &mut SlackChannelInfo
pub fn mopt_priority(
&mut self,
value: Option<SlackChannelPriority>
) -> &mut SlackChannelInfo
pub fn with_priority(self, value: SlackChannelPriority) -> SlackChannelInfo
pub fn without_priority(self) -> SlackChannelInfo
pub fn opt_priority(
self,
value: Option<SlackChannelPriority>
) -> SlackChannelInfo
pub fn num_members(&mut self, value: u64) -> &mut SlackChannelInfo
pub fn reset_num_members(&mut self) -> &mut SlackChannelInfo
pub fn mopt_num_members(&mut self, value: Option<u64>) -> &mut SlackChannelInfo
pub fn with_num_members(self, value: u64) -> SlackChannelInfo
pub fn without_num_members(self) -> SlackChannelInfo
pub fn opt_num_members(self, value: Option<u64>) -> SlackChannelInfo
pub fn locale(&mut self, value: SlackLocale) -> &mut SlackChannelInfo
pub fn reset_locale(&mut self) -> &mut SlackChannelInfo
pub fn mopt_locale(
&mut self,
value: Option<SlackLocale>
) -> &mut SlackChannelInfo
pub fn with_locale(self, value: SlackLocale) -> SlackChannelInfo
pub fn without_locale(self) -> SlackChannelInfo
pub fn opt_locale(self, value: Option<SlackLocale>) -> SlackChannelInfo
pub fn flags(&mut self, value: SlackChannelFlags) -> &mut SlackChannelInfo
pub fn with_flags(self, value: SlackChannelFlags) -> SlackChannelInfo
pub fn last_state(
&mut self,
value: SlackChannelCurrentState
) -> &mut SlackChannelInfo
pub fn with_last_state(
self,
value: SlackChannelCurrentState
) -> SlackChannelInfo
Trait Implementations
sourceimpl Clone for SlackChannelInfo
impl Clone for SlackChannelInfo
sourcepub fn clone(&self) -> SlackChannelInfo
pub 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
sourcepub 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
sourceimpl From<SlackChannelInfoInit> for SlackChannelInfo
impl From<SlackChannelInfoInit> for SlackChannelInfo
sourcepub fn from(value: SlackChannelInfoInit) -> SlackChannelInfo
pub fn from(value: SlackChannelInfoInit) -> SlackChannelInfo
Performs the conversion.
sourceimpl HasChannelInfo for SlackChannelInfo
impl HasChannelInfo for SlackChannelInfo
pub fn get_channel_id(&self) -> &SlackChannelId
sourceimpl PartialEq<SlackChannelInfo> for SlackChannelInfo
impl PartialEq<SlackChannelInfo> for SlackChannelInfo
sourcepub fn eq(&self, other: &SlackChannelInfo) -> bool
pub fn eq(&self, other: &SlackChannelInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcepub fn ne(&self, other: &SlackChannelInfo) -> bool
pub fn ne(&self, other: &SlackChannelInfo) -> bool
This method tests for !=.
sourceimpl Serialize for SlackChannelInfo
impl Serialize for SlackChannelInfo
sourcepub 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
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more