#[non_exhaustive]pub enum FileIdOrUrl {
FileId(String),
Url(String),
Path(String),
Other,
}dbx_riviera and sync_routes only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FileId(String)
A Dropbox-issued file id (format: “id:
Url(String)
Either a Dropbox shared link (www.dropbox.com) or an external HTTP or HTTPS URL pointing to
a supported file. - Dropbox shared links are resolved internally using the caller’s
authenticated identity and the link’s visibility / download settings. They therefore require
an authenticated user context (anonymous url requests against Dropbox links are rejected
with an access_error). Links protected by a password are rejected with
shared_link_password_protected; links with downloads disabled are rejected with
link_download_disabled_error. - External URLs are fetched through the backend’s egress
proxy and must point at a supported file extension.
Path(String)
An absolute Dropbox path, e.g. “/folder/example.pdf”.
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 FileIdOrUrl
impl Clone for FileIdOrUrl
Source§fn clone(&self) -> FileIdOrUrl
fn clone(&self) -> FileIdOrUrl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileIdOrUrl
impl Debug for FileIdOrUrl
Source§impl<'de> Deserialize<'de> for FileIdOrUrl
impl<'de> Deserialize<'de> for FileIdOrUrl
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
impl Eq for FileIdOrUrl
Source§impl PartialEq for FileIdOrUrl
impl PartialEq for FileIdOrUrl
Source§impl Serialize for FileIdOrUrl
impl Serialize for FileIdOrUrl
impl StructuralPartialEq for FileIdOrUrl
Auto Trait Implementations§
impl Freeze for FileIdOrUrl
impl RefUnwindSafe for FileIdOrUrl
impl Send for FileIdOrUrl
impl Sync for FileIdOrUrl
impl Unpin for FileIdOrUrl
impl UnsafeUnpin for FileIdOrUrl
impl UnwindSafe for FileIdOrUrl
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.