#[non_exhaustive]pub struct FileRequest {
pub id: FileRequestId,
pub url: String,
pub title: String,
pub created: DropboxTimestamp,
pub is_open: bool,
pub file_count: i64,
pub destination: Option<Path>,
pub deadline: Option<FileRequestDeadline>,
pub description: Option<String>,
}
Available on crate features
async_routes
and dbx_file_requests
only.Expand description
A file request for receiving files into the user’s Dropbox account.
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.id: FileRequestId
The ID of the file request.
url: String
The URL of the file request.
title: String
The title of the file request.
created: DropboxTimestamp
When this file request was created.
is_open: bool
Whether or not the file request is open. If the file request is closed, it will not accept any more file submissions.
file_count: i64
The number of files this file request has received.
destination: Option<Path>
The path of the folder in the Dropbox where uploaded files will be sent. This can be None
if the destination was removed. For apps with the app folder permission, this will be
relative to the app folder.
deadline: Option<FileRequestDeadline>
The deadline for this file request. Only set if the request has a deadline.
description: Option<String>
A description of the file request.
Implementations§
Source§impl FileRequest
impl FileRequest
pub fn new( id: FileRequestId, url: String, title: String, created: DropboxTimestamp, is_open: bool, file_count: i64, ) -> Self
pub fn with_destination(self, value: Path) -> Self
pub fn with_deadline(self, value: FileRequestDeadline) -> Self
pub fn with_description(self, value: String) -> Self
Trait Implementations§
Source§impl Clone for FileRequest
impl Clone for FileRequest
Source§fn clone(&self) -> FileRequest
fn clone(&self) -> FileRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileRequest
impl Debug for FileRequest
Source§impl<'de> Deserialize<'de> for FileRequest
impl<'de> Deserialize<'de> for FileRequest
Source§fn 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
Source§impl PartialEq for FileRequest
impl PartialEq for FileRequest
Source§impl Serialize for FileRequest
impl Serialize for FileRequest
impl Eq for FileRequest
impl StructuralPartialEq for FileRequest
Auto Trait Implementations§
impl Freeze for FileRequest
impl RefUnwindSafe for FileRequest
impl Send for FileRequest
impl Sync for FileRequest
impl Unpin for FileRequest
impl UnwindSafe for FileRequest
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
Mutably borrows from an owned value. Read more
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
Compare self to
key
and return true
if they are equal.