pub struct UploadFile {
pub fixed_id: Option<FileId>,
pub parent_id: Option<FileId>,
pub folder_id: FolderId,
pub document_box: DocumentBoxScopeRaw,
pub name: String,
pub mime: Mime,
pub file_bytes: Bytes,
pub created_by: Option<UserId>,
pub file_key: Option<String>,
pub processing_config: Option<ProcessingConfig>,
}Fields§
§fixed_id: Option<FileId>Fixed file ID to use instead of a randomly generated file ID
parent_id: Option<FileId>ID of the parent file if this file is related to another file
folder_id: FolderIdID of the destination folder
document_box: DocumentBoxScopeRawDocument box the file and folder are contained within
name: StringFile name
mime: MimeFile content type
file_bytes: BytesFile content
created_by: Option<UserId>User uploading the file
file_key: Option<String>Key to the file if the file is already uploaded to S3
processing_config: Option<ProcessingConfig>Config that can be used when processing for additional configuration to how the file is processed
Auto Trait Implementations§
impl !Freeze for UploadFile
impl RefUnwindSafe for UploadFile
impl Send for UploadFile
impl Sync for UploadFile
impl Unpin for UploadFile
impl UnwindSafe for UploadFile
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.