Struct dropbox_sdk::team::TeamMemberRole
source · [−]#[non_exhaustive]pub struct TeamMemberRole {
pub role_id: TeamMemberRoleId,
pub name: String,
pub description: String,
}Available on crate feature
dbx_team only.Expand description
A role which can be attached to a team member. This replaces AdminTier; each AdminTier corresponds to a new TeamMemberRole with a matching name.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.role_id: TeamMemberRoleIdA string containing encoded role ID. For roles defined by Dropbox, this is the same across all teams.
name: StringThe role display name.
description: StringRole description. Describes which permissions come with this role.
Implementations
sourceimpl TeamMemberRole
impl TeamMemberRole
pub fn new(role_id: TeamMemberRoleId, name: String, description: String) -> Self
Trait Implementations
sourceimpl Clone for TeamMemberRole
impl Clone for TeamMemberRole
sourcefn clone(&self) -> TeamMemberRole
fn clone(&self) -> TeamMemberRole
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 TeamMemberRole
impl Debug for TeamMemberRole
sourceimpl<'de> Deserialize<'de> for TeamMemberRole
impl<'de> Deserialize<'de> for TeamMemberRole
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<TeamMemberRole> for TeamMemberRole
impl PartialEq<TeamMemberRole> for TeamMemberRole
sourcefn eq(&self, other: &TeamMemberRole) -> bool
fn eq(&self, other: &TeamMemberRole) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TeamMemberRole) -> bool
fn ne(&self, other: &TeamMemberRole) -> bool
This method tests for !=.
sourceimpl Serialize for TeamMemberRole
impl Serialize for TeamMemberRole
impl Eq for TeamMemberRole
impl StructuralEq for TeamMemberRole
impl StructuralPartialEq for TeamMemberRole
Auto Trait Implementations
impl RefUnwindSafe for TeamMemberRole
impl Send for TeamMemberRole
impl Sync for TeamMemberRole
impl Unpin for TeamMemberRole
impl UnwindSafe for TeamMemberRole
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