Struct slack_morphism::prelude::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: SlackTeamId
§name: Option<String>
§domain: Option<String>
§email_domain: Option<String>
§icon: Option<SlackIcon>
Implementations§
source§impl 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§
source§impl Clone for SlackTeamInfo
impl Clone for SlackTeamInfo
source§fn clone(&self) -> SlackTeamInfo
fn clone(&self) -> SlackTeamInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SlackTeamInfo
impl Debug for SlackTeamInfo
source§impl<'de> Deserialize<'de> for SlackTeamInfo
impl<'de> Deserialize<'de> for SlackTeamInfo
source§fn 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
source§impl From<SlackTeamInfoInit> for SlackTeamInfo
impl From<SlackTeamInfoInit> for SlackTeamInfo
source§fn from(value: SlackTeamInfoInit) -> Self
fn from(value: SlackTeamInfoInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackTeamInfo
impl PartialEq for SlackTeamInfo
source§fn 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 ==
.source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more