#[non_exhaustive]pub enum GroupMembersAddError {
GroupNotFound,
SystemManagedGroupDisallowed,
DuplicateUser,
GroupNotInTeam,
MembersNotInTeam(Vec<String>),
UsersNotFound(Vec<String>),
UserMustBeActiveToBeOwner,
UserCannotBeManagerOfCompanyManagedGroup(Vec<String>),
Other,
}
dbx_team
only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GroupNotFound
No matching group found. No groups match the specified group ID.
SystemManagedGroupDisallowed
This operation is not supported on system-managed groups.
DuplicateUser
You cannot add duplicate users. One or more of the members you are trying to add is already a member of the group.
GroupNotInTeam
Group is not in this team. You cannot add members to a group that is outside of your team.
MembersNotInTeam(Vec<String>)
These members are not part of your team. Currently, you cannot add members to a group if
they are not part of your team, though this may change in a subsequent version. To add new
members to your Dropbox Business team, use the members_add()
endpoint.
UsersNotFound(Vec<String>)
These users were not found in Dropbox.
UserMustBeActiveToBeOwner
A suspended user cannot be added to a group as GroupAccessType::Owner
.
UserCannotBeManagerOfCompanyManagedGroup(Vec<String>)
A company-managed group cannot be managed by a user.
Other
Catch-all used for unrecognized values returned from the server. Encountering this value typically indicates that this SDK version is out of date.
Trait Implementations§
Source§impl Clone for GroupMembersAddError
impl Clone for GroupMembersAddError
Source§fn clone(&self) -> GroupMembersAddError
fn clone(&self) -> GroupMembersAddError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GroupMembersAddError
impl Debug for GroupMembersAddError
Source§impl<'de> Deserialize<'de> for GroupMembersAddError
impl<'de> Deserialize<'de> for GroupMembersAddError
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl Display for GroupMembersAddError
impl Display for GroupMembersAddError
Source§impl Error for GroupMembersAddError
impl Error for GroupMembersAddError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<GroupSelectorWithTeamGroupError> for GroupMembersAddError
impl From<GroupSelectorWithTeamGroupError> for GroupMembersAddError
Source§fn from(parent: GroupSelectorWithTeamGroupError) -> Self
fn from(parent: GroupSelectorWithTeamGroupError) -> Self
Source§impl PartialEq for GroupMembersAddError
impl PartialEq for GroupMembersAddError
Source§impl Serialize for GroupMembersAddError
impl Serialize for GroupMembersAddError
impl Eq for GroupMembersAddError
impl StructuralPartialEq for GroupMembersAddError
Auto Trait Implementations§
impl Freeze for GroupMembersAddError
impl RefUnwindSafe for GroupMembersAddError
impl Send for GroupMembersAddError
impl Sync for GroupMembersAddError
impl Unpin for GroupMembersAddError
impl UnwindSafe for GroupMembersAddError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.