Struct slack_morphism::prelude::SlackEnterpriseUser
source · pub struct SlackEnterpriseUser {
pub id: SlackUserId,
pub enterprise_id: SlackEnterpriseId,
pub enterprise_name: Option<String>,
pub flags: SlackUserFlags,
pub teams: Option<Vec<SlackTeamId>>,
}
Fields§
§id: SlackUserId
§enterprise_id: SlackEnterpriseId
§enterprise_name: Option<String>
§flags: SlackUserFlags
§teams: Option<Vec<SlackTeamId>>
Implementations§
source§impl SlackEnterpriseUser
impl SlackEnterpriseUser
pub fn new( id: SlackUserId, enterprise_id: SlackEnterpriseId, flags: SlackUserFlags ) -> Self
pub fn id(&mut self, value: SlackUserId) -> &mut Self
pub fn with_id(self, value: SlackUserId) -> Self
pub fn enterprise_id(&mut self, value: SlackEnterpriseId) -> &mut Self
pub fn with_enterprise_id(self, value: SlackEnterpriseId) -> Self
pub fn enterprise_name(&mut self, value: String) -> &mut Self
pub fn reset_enterprise_name(&mut self) -> &mut Self
pub fn mopt_enterprise_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_enterprise_name(self, value: String) -> Self
pub fn without_enterprise_name(self) -> Self
pub fn opt_enterprise_name(self, value: Option<String>) -> Self
pub fn flags(&mut self, value: SlackUserFlags) -> &mut Self
pub fn with_flags(self, value: SlackUserFlags) -> Self
pub fn teams(&mut self, value: Vec<SlackTeamId>) -> &mut Self
pub fn reset_teams(&mut self) -> &mut Self
pub fn mopt_teams(&mut self, value: Option<Vec<SlackTeamId>>) -> &mut Self
pub fn with_teams(self, value: Vec<SlackTeamId>) -> Self
pub fn without_teams(self) -> Self
pub fn opt_teams(self, value: Option<Vec<SlackTeamId>>) -> Self
Trait Implementations§
source§impl Clone for SlackEnterpriseUser
impl Clone for SlackEnterpriseUser
source§fn clone(&self) -> SlackEnterpriseUser
fn clone(&self) -> SlackEnterpriseUser
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 SlackEnterpriseUser
impl Debug for SlackEnterpriseUser
source§impl<'de> Deserialize<'de> for SlackEnterpriseUser
impl<'de> Deserialize<'de> for SlackEnterpriseUser
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<SlackEnterpriseUserInit> for SlackEnterpriseUser
impl From<SlackEnterpriseUserInit> for SlackEnterpriseUser
source§fn from(value: SlackEnterpriseUserInit) -> Self
fn from(value: SlackEnterpriseUserInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackEnterpriseUser
impl PartialEq for SlackEnterpriseUser
source§fn eq(&self, other: &SlackEnterpriseUser) -> bool
fn eq(&self, other: &SlackEnterpriseUser) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackEnterpriseUser
impl Serialize for SlackEnterpriseUser
impl StructuralPartialEq for SlackEnterpriseUser
Auto Trait Implementations§
impl RefUnwindSafe for SlackEnterpriseUser
impl Send for SlackEnterpriseUser
impl Sync for SlackEnterpriseUser
impl Unpin for SlackEnterpriseUser
impl UnwindSafe for SlackEnterpriseUser
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