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
Sourcepub fn new(id: SlackTeamId) -> Self
pub fn new(id: SlackTeamId) -> Self
Creates a new SlackTeamInfo from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn id(&mut self, value: SlackTeamId) -> &mut Self
pub fn id(&mut self, value: SlackTeamId) -> &mut Self
Sets id to value.
Sourcepub fn with_id(self, value: SlackTeamId) -> Self
pub fn with_id(self, value: SlackTeamId) -> Self
Returns self with id set to value.
Sourcepub fn reset_name(&mut self) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
Sets name to None.
Sourcepub fn without_name(self) -> Self
pub fn without_name(self) -> Self
Returns self with name set to None.
Sourcepub fn opt_name(self, value: Option<String>) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
Returns self with name set to the given Option.
Sourcepub fn reset_domain(&mut self) -> &mut Self
pub fn reset_domain(&mut self) -> &mut Self
Sets domain to None.
Sourcepub fn mopt_domain(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_domain(&mut self, value: Option<String>) -> &mut Self
Sets domain to the given Option.
Sourcepub fn with_domain(self, value: String) -> Self
pub fn with_domain(self, value: String) -> Self
Returns self with domain set to Some(value).
Sourcepub fn without_domain(self) -> Self
pub fn without_domain(self) -> Self
Returns self with domain set to None.
Sourcepub fn opt_domain(self, value: Option<String>) -> Self
pub fn opt_domain(self, value: Option<String>) -> Self
Returns self with domain set to the given Option.
Sourcepub fn email_domain(&mut self, value: String) -> &mut Self
pub fn email_domain(&mut self, value: String) -> &mut Self
Sets email_domain to Some(value).
Sourcepub fn reset_email_domain(&mut self) -> &mut Self
pub fn reset_email_domain(&mut self) -> &mut Self
Sets email_domain to None.
Sourcepub fn mopt_email_domain(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_email_domain(&mut self, value: Option<String>) -> &mut Self
Sets email_domain to the given Option.
Sourcepub fn with_email_domain(self, value: String) -> Self
pub fn with_email_domain(self, value: String) -> Self
Returns self with email_domain set to Some(value).
Sourcepub fn without_email_domain(self) -> Self
pub fn without_email_domain(self) -> Self
Returns self with email_domain set to None.
Sourcepub fn opt_email_domain(self, value: Option<String>) -> Self
pub fn opt_email_domain(self, value: Option<String>) -> Self
Returns self with email_domain set to the given Option.
Sourcepub fn reset_icon(&mut self) -> &mut Self
pub fn reset_icon(&mut self) -> &mut Self
Sets icon to None.
Sourcepub fn mopt_icon(&mut self, value: Option<SlackIcon>) -> &mut Self
pub fn mopt_icon(&mut self, value: Option<SlackIcon>) -> &mut Self
Sets icon to the given Option.
Sourcepub fn without_icon(self) -> Self
pub fn without_icon(self) -> Self
Returns self with icon set to None.