Struct slack_morphism::prelude::SlackChannelInfo

source ·
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: SlackChannelCurrentState

Implementations§

source§

impl SlackChannelInfo

source

pub fn new( id: SlackChannelId, created: SlackDateTime, flags: SlackChannelFlags, last_state: SlackChannelCurrentState ) -> Self

source

pub fn id(&mut self, value: SlackChannelId) -> &mut Self

source

pub fn with_id(self, value: SlackChannelId) -> Self

source

pub fn created(&mut self, value: SlackDateTime) -> &mut Self

source

pub fn with_created(self, value: SlackDateTime) -> Self

source

pub fn creator(&mut self, value: SlackUserId) -> &mut Self

source

pub fn reset_creator(&mut self) -> &mut Self

source

pub fn mopt_creator(&mut self, value: Option<SlackUserId>) -> &mut Self

source

pub fn with_creator(self, value: SlackUserId) -> Self

source

pub fn without_creator(self) -> Self

source

pub fn opt_creator(self, value: Option<SlackUserId>) -> Self

source

pub fn name(&mut self, value: String) -> &mut Self

source

pub fn reset_name(&mut self) -> &mut Self

source

pub fn mopt_name(&mut self, value: Option<String>) -> &mut Self

source

pub fn with_name(self, value: String) -> Self

source

pub fn without_name(self) -> Self

source

pub fn opt_name(self, value: Option<String>) -> Self

source

pub fn name_normalized(&mut self, value: String) -> &mut Self

source

pub fn reset_name_normalized(&mut self) -> &mut Self

source

pub fn mopt_name_normalized(&mut self, value: Option<String>) -> &mut Self

source

pub fn with_name_normalized(self, value: String) -> Self

source

pub fn without_name_normalized(self) -> Self

source

pub fn opt_name_normalized(self, value: Option<String>) -> Self

source

pub fn topic(&mut self, value: SlackChannelTopicInfo) -> &mut Self

source

pub fn reset_topic(&mut self) -> &mut Self

source

pub fn mopt_topic(&mut self, value: Option<SlackChannelTopicInfo>) -> &mut Self

source

pub fn with_topic(self, value: SlackChannelTopicInfo) -> Self

source

pub fn without_topic(self) -> Self

source

pub fn opt_topic(self, value: Option<SlackChannelTopicInfo>) -> Self

source

pub fn purpose(&mut self, value: SlackChannelPurposeInfo) -> &mut Self

source

pub fn reset_purpose(&mut self) -> &mut Self

source

pub fn mopt_purpose( &mut self, value: Option<SlackChannelPurposeInfo> ) -> &mut Self

source

pub fn with_purpose(self, value: SlackChannelPurposeInfo) -> Self

source

pub fn without_purpose(self) -> Self

source

pub fn opt_purpose(self, value: Option<SlackChannelPurposeInfo>) -> Self

source

pub fn previous_names(&mut self, value: Vec<String>) -> &mut Self

source

pub fn reset_previous_names(&mut self) -> &mut Self

source

pub fn mopt_previous_names(&mut self, value: Option<Vec<String>>) -> &mut Self

source

pub fn with_previous_names(self, value: Vec<String>) -> Self

source

pub fn without_previous_names(self) -> Self

source

pub fn opt_previous_names(self, value: Option<Vec<String>>) -> Self

source

pub fn priority(&mut self, value: SlackChannelPriority) -> &mut Self

source

pub fn reset_priority(&mut self) -> &mut Self

source

pub fn mopt_priority( &mut self, value: Option<SlackChannelPriority> ) -> &mut Self

source

pub fn with_priority(self, value: SlackChannelPriority) -> Self

source

pub fn without_priority(self) -> Self

source

pub fn opt_priority(self, value: Option<SlackChannelPriority>) -> Self

source

pub fn num_members(&mut self, value: u64) -> &mut Self

source

pub fn reset_num_members(&mut self) -> &mut Self

source

pub fn mopt_num_members(&mut self, value: Option<u64>) -> &mut Self

source

pub fn with_num_members(self, value: u64) -> Self

source

pub fn without_num_members(self) -> Self

source

pub fn opt_num_members(self, value: Option<u64>) -> Self

source

pub fn locale(&mut self, value: SlackLocale) -> &mut Self

source

pub fn reset_locale(&mut self) -> &mut Self

source

pub fn mopt_locale(&mut self, value: Option<SlackLocale>) -> &mut Self

source

pub fn with_locale(self, value: SlackLocale) -> Self

source

pub fn without_locale(self) -> Self

source

pub fn opt_locale(self, value: Option<SlackLocale>) -> Self

source

pub fn flags(&mut self, value: SlackChannelFlags) -> &mut Self

source

pub fn with_flags(self, value: SlackChannelFlags) -> Self

source

pub fn last_state(&mut self, value: SlackChannelCurrentState) -> &mut Self

source

pub fn with_last_state(self, value: SlackChannelCurrentState) -> Self

Trait Implementations§

source§

impl Clone for SlackChannelInfo

source§

fn clone(&self) -> SlackChannelInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SlackChannelInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SlackChannelInfo

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<SlackChannelInfoInit> for SlackChannelInfo

source§

fn from(value: SlackChannelInfoInit) -> Self

Converts to this type from the input type.
source§

impl HasChannelInfo for SlackChannelInfo

source§

impl PartialEq for SlackChannelInfo

source§

fn eq(&self, other: &SlackChannelInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SlackChannelInfo

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SlackChannelInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,