pub struct FileInfo {Show 15 fields
pub is_stored: bool,
pub done: u32,
pub file_id: String,
pub total: u32,
pub size: u32,
pub uuid: String,
pub is_image: bool,
pub filename: String,
pub video_info: Option<VideoInfo>,
pub is_ready: bool,
pub original_filename: String,
pub image_info: Option<ImageInfo>,
pub mime_type: String,
pub s3_bucket: Option<String>,
pub default_effects: Option<String>,
}Expand description
Holds file information in the upload context
Fields§
§is_stored: boolTrue if file is stored
done: u32Denotes currently uploaded file size in bytes
file_id: StringSame as uuid
total: u32Total is same as size
size: u32File size in bytes
uuid: StringFile UUID
is_image: boolIf file is an image
filename: StringSanitized `original_filename
video_info: Option<VideoInfo>Video metadata
is_ready: boolIf file is ready to be used after upload
original_filename: StringOriginal file name taken from uploaded file
image_info: Option<ImageInfo>Image metadata
mime_type: StringFile MIME-type.
s3_bucket: Option<String>Your custom user bucket on which file are stored. Only available of you setup foreign storage bucket for your project
default_effects: Option<String>CDN media transformations applied to the file when its group was created
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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> 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 more