Struct dropbox_sdk::file_requests::FileRequest
source · [−]#[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>,
}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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: FileRequestIdThe ID of the file request.
url: StringThe URL of the file request.
title: StringThe title of the file request.
created: DropboxTimestampWhen this file request was created.
is_open: boolWhether or not the file request is open. If the file request is closed, it will not accept any more file submissions.
file_count: i64The 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
sourceimpl 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
sourceimpl Clone for FileRequest
impl Clone for FileRequest
sourcefn clone(&self) -> FileRequest
fn clone(&self) -> FileRequest
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 FileRequest
impl Debug for FileRequest
sourceimpl<'de> Deserialize<'de> for FileRequest
impl<'de> Deserialize<'de> for FileRequest
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 PartialEq<FileRequest> for FileRequest
impl PartialEq<FileRequest> for FileRequest
sourcefn eq(&self, other: &FileRequest) -> bool
fn eq(&self, other: &FileRequest) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FileRequest) -> bool
fn ne(&self, other: &FileRequest) -> bool
This method tests for !=.
sourceimpl Serialize for FileRequest
impl Serialize for FileRequest
impl Eq for FileRequest
impl StructuralEq for FileRequest
impl StructuralPartialEq for FileRequest
Auto Trait Implementations
impl RefUnwindSafe for FileRequest
impl Send for FileRequest
impl Sync for FileRequest
impl Unpin for FileRequest
impl UnwindSafe for FileRequest
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