pub struct ObjectInfo {
pub handle: ObjectHandle,
pub storage_id: StorageId,
pub parent: ObjectHandle,
pub filename: String,
pub size: u64,
pub format: ObjectFormat,
pub created: Option<DateTime>,
pub modified: Option<DateTime>,
pub image_width: u32,
pub image_height: u32,
/* private fields */
}Expand description
Metadata for one object (file or folder) on a device.
Fields§
§handle: ObjectHandleOpaque handle for this object (see ObjectHandle).
storage_id: StorageIdThe storage this object lives on.
parent: ObjectHandleParent object, or ObjectHandle::ROOT for a top-level object.
filename: StringFile or folder name.
size: u64Size in bytes (0 for folders).
format: ObjectFormatMTP format code.
created: Option<DateTime>Creation time, if the device reported a valid one.
modified: Option<DateTime>Modification time, if the device reported a valid one.
image_width: u32Image width in pixels (0 if not an image or unknown).
image_height: u32Image height in pixels (0 if not an image or unknown).
Implementations§
Trait Implementations§
Source§impl Clone for ObjectInfo
impl Clone for ObjectInfo
Source§fn clone(&self) -> ObjectInfo
fn clone(&self) -> ObjectInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectInfo
impl Debug for ObjectInfo
Source§impl Default for ObjectInfo
impl Default for ObjectInfo
Source§fn default() -> ObjectInfo
fn default() -> ObjectInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObjectInfo
impl RefUnwindSafe for ObjectInfo
impl Send for ObjectInfo
impl Sync for ObjectInfo
impl Unpin for ObjectInfo
impl UnsafeUnpin for ObjectInfo
impl UnwindSafe for ObjectInfo
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