[−][src]Struct ucare::upload::FileInfo
Holds file information in the upload context
Fields
is_stored: Option<bool>True if file is stored
done: Option<u32>Denotes currently uploaded file size in bytes
file_id: Option<String>Same as uuid
total: Option<u32>Total is same as size
size: Option<u32>File size in bytes
uuid: Option<String>File UUID
is_image: Option<bool>If file is an image
filename: Option<String>Sanitized `original_filename
video_info: Option<VideoInfo>Video metadata
is_ready: Option<bool>If file is ready to be used after upload
original_filename: Option<String>Original file name taken from uploaded file
image_info: Option<ImageInfo>Image metadata
mime_type: Option<String>File 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
impl Debug for FileInfo[src]
impl<'de> Deserialize<'de> for FileInfo[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,