Struct mongo_file_center::FileItem
source · [−]pub struct FileItem { /* private fields */ }
Expand description
To represent the file retrieved from MongoDB.
Implementations
sourceimpl FileItem
impl FileItem
pub fn get_file_id(&self) -> ObjectId
pub fn get_create_time(&self) -> DateTime
pub fn get_expiration_time(&self) -> Option<DateTime>
pub fn get_mime_type(&self) -> &Mime
pub fn get_file_size(&self) -> u64
pub fn get_file_name(&self) -> &str
pub fn into_file_data(self) -> FileData
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FileItem
impl Send for FileItem
impl !Sync for FileItem
impl Unpin for FileItem
impl !UnwindSafe for FileItem
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