pub enum SharedLinkSettingsError {
InvalidSettings,
NotAuthorized,
}dbx_sharing only.Variants
InvalidSettings
The given settings are invalid (for example, all attributes of the
SharedLinkSettings are empty, the requested visibility is
RequestedVisibility::Password but the
SharedLinkSettings::link_password is missing,
SharedLinkSettings::expires is set to the past, etc.).
NotAuthorized
User is not allowed to modify the settings of this link. Note that basic users can only set
RequestedVisibility::Public as the
SharedLinkSettings::requested_visibility and cannot set
SharedLinkSettings::expires.
Trait Implementations
sourceimpl Clone for SharedLinkSettingsError
impl Clone for SharedLinkSettingsError
sourcefn clone(&self) -> SharedLinkSettingsError
fn clone(&self) -> SharedLinkSettingsError
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 SharedLinkSettingsError
impl Debug for SharedLinkSettingsError
sourceimpl<'de> Deserialize<'de> for SharedLinkSettingsError
impl<'de> Deserialize<'de> for SharedLinkSettingsError
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 SharedLinkSettingsError
impl Display for SharedLinkSettingsError
sourceimpl Error for SharedLinkSettingsError
impl Error for SharedLinkSettingsError
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()
sourceimpl Serialize for SharedLinkSettingsError
impl Serialize for SharedLinkSettingsError
impl Eq for SharedLinkSettingsError
impl StructuralEq for SharedLinkSettingsError
impl StructuralPartialEq for SharedLinkSettingsError
Auto Trait Implementations
impl RefUnwindSafe for SharedLinkSettingsError
impl Send for SharedLinkSettingsError
impl Sync for SharedLinkSettingsError
impl Unpin for SharedLinkSettingsError
impl UnwindSafe for SharedLinkSettingsError
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