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§impl Serialize for SlackEnterpriseUser
impl Serialize for SlackEnterpriseUser
impl StructuralPartialEq for SlackEnterpriseUser
Auto Trait Implementations§
impl Freeze for SlackEnterpriseUser
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)