#[non_exhaustive]
pub enum LegalHoldsPolicyCreateError {
UnknownLegalHoldError,
InsufficientPermissions,
StartDateIsLaterThanEndDate,
EmptyMembersList,
InvalidMembers,
NumberOfUsersOnHoldIsGreaterThanHoldLimitation,
TransientError,
NameMustBeUnique,
TeamExceededLegalHoldQuota,
InvalidDate,
Other,
}dbx_team only.Variants (Non-exhaustive)
This enum is marked as non-exhaustive
UnknownLegalHoldError
There has been an unknown legal hold error.
InsufficientPermissions
You don’t have permissions to perform this action.
StartDateIsLaterThanEndDate
Start date must be earlier than end date.
EmptyMembersList
The users list must have at least one user.
InvalidMembers
Some members in the members list are not valid to be placed under legal hold.
NumberOfUsersOnHoldIsGreaterThanHoldLimitation
You cannot add more than 5 users in a legal hold.
TransientError
Temporary infrastructure failure, please retry.
NameMustBeUnique
The name provided is already in use by another legal hold.
TeamExceededLegalHoldQuota
Team exceeded legal hold quota.
InvalidDate
The provided date is invalid.
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
sourceimpl Clone for LegalHoldsPolicyCreateError
impl Clone for LegalHoldsPolicyCreateError
sourcefn clone(&self) -> LegalHoldsPolicyCreateError
fn clone(&self) -> LegalHoldsPolicyCreateError
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 LegalHoldsPolicyCreateError
impl Debug for LegalHoldsPolicyCreateError
sourceimpl<'de> Deserialize<'de> for LegalHoldsPolicyCreateError
impl<'de> Deserialize<'de> for LegalHoldsPolicyCreateError
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 Display for LegalHoldsPolicyCreateError
impl Display for LegalHoldsPolicyCreateError
sourceimpl Error for LegalHoldsPolicyCreateError
impl Error for LegalHoldsPolicyCreateError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl Eq for LegalHoldsPolicyCreateError
impl StructuralEq for LegalHoldsPolicyCreateError
impl StructuralPartialEq for LegalHoldsPolicyCreateError
Auto Trait Implementations
impl RefUnwindSafe for LegalHoldsPolicyCreateError
impl Send for LegalHoldsPolicyCreateError
impl Sync for LegalHoldsPolicyCreateError
impl Unpin for LegalHoldsPolicyCreateError
impl UnwindSafe for LegalHoldsPolicyCreateError
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