Struct slack_morphism::SlackTeamInfo
source · [−]pub struct SlackTeamInfo {
pub id: SlackTeamId,
pub name: Option<String>,
pub domain: Option<String>,
pub email_domain: Option<String>,
pub icon: Option<SlackIcon>,
}Fields
id: SlackTeamIdname: Option<String>domain: Option<String>email_domain: Option<String>icon: Option<SlackIcon>Implementations
sourceimpl SlackTeamInfo
impl SlackTeamInfo
pub fn new(id: SlackTeamId) -> Self
pub fn id(&mut self, value: SlackTeamId) -> &mut Self
pub fn with_id(self, value: SlackTeamId) -> Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
pub fn mopt_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_name(self, value: String) -> Self
pub fn without_name(self) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
pub fn domain(&mut self, value: String) -> &mut Self
pub fn reset_domain(&mut self) -> &mut Self
pub fn mopt_domain(&mut self, value: Option<String>) -> &mut Self
pub fn with_domain(self, value: String) -> Self
pub fn without_domain(self) -> Self
pub fn opt_domain(self, value: Option<String>) -> Self
pub fn email_domain(&mut self, value: String) -> &mut Self
pub fn reset_email_domain(&mut self) -> &mut Self
pub fn mopt_email_domain(&mut self, value: Option<String>) -> &mut Self
pub fn with_email_domain(self, value: String) -> Self
pub fn without_email_domain(self) -> Self
pub fn opt_email_domain(self, value: Option<String>) -> Self
pub fn icon(&mut self, value: SlackIcon) -> &mut Self
pub fn reset_icon(&mut self) -> &mut Self
pub fn mopt_icon(&mut self, value: Option<SlackIcon>) -> &mut Self
pub fn with_icon(self, value: SlackIcon) -> Self
pub fn without_icon(self) -> Self
pub fn opt_icon(self, value: Option<SlackIcon>) -> Self
Trait Implementations
sourceimpl Clone for SlackTeamInfo
impl Clone for SlackTeamInfo
sourcefn clone(&self) -> SlackTeamInfo
fn clone(&self) -> SlackTeamInfo
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 SlackTeamInfo
impl Debug for SlackTeamInfo
sourceimpl<'de> Deserialize<'de> for SlackTeamInfo
impl<'de> Deserialize<'de> for SlackTeamInfo
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<SlackTeamInfoInit> for SlackTeamInfo
impl From<SlackTeamInfoInit> for SlackTeamInfo
sourcefn from(value: SlackTeamInfoInit) -> Self
fn from(value: SlackTeamInfoInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackTeamInfo> for SlackTeamInfo
impl PartialEq<SlackTeamInfo> for SlackTeamInfo
sourcefn eq(&self, other: &SlackTeamInfo) -> bool
fn eq(&self, other: &SlackTeamInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackTeamInfo) -> bool
fn ne(&self, other: &SlackTeamInfo) -> bool
This method tests for !=.
sourceimpl Serialize for SlackTeamInfo
impl Serialize for SlackTeamInfo
impl StructuralPartialEq for SlackTeamInfo
Auto Trait Implementations
impl RefUnwindSafe for SlackTeamInfo
impl Send for SlackTeamInfo
impl Sync for SlackTeamInfo
impl Unpin for SlackTeamInfo
impl UnwindSafe for SlackTeamInfo
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
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> 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