#[repr(u16)]pub enum ObjectPropertyCode {
StorageId = 56_321,
ObjectFormat = 56_322,
ProtectionStatus = 56_323,
ObjectSize = 56_324,
ObjectFileName = 56_327,
DateCreated = 56_328,
DateModified = 56_329,
ParentObject = 56_331,
Name = 56_388,
Unknown(u16),
}Expand description
MTP object property codes.
These codes identify object properties that can be get/set via MTP operations.
Variants§
StorageId = 56_321
Storage ID containing the object.
ObjectFormat = 56_322
Object format code.
ProtectionStatus = 56_323
Protection status (read-only, etc.).
ObjectSize = 56_324
Object size in bytes.
ObjectFileName = 56_327
Object filename (key property for renaming).
DateCreated = 56_328
Date the object was created.
DateModified = 56_329
Date the object was last modified.
ParentObject = 56_331
Parent object handle.
Name = 56_388
Display name of the object.
Unknown(u16)
Unknown or vendor-specific property code.
Trait Implementations§
Source§impl Clone for ObjectPropertyCode
impl Clone for ObjectPropertyCode
Source§fn clone(&self) -> ObjectPropertyCode
fn clone(&self) -> ObjectPropertyCode
Returns a duplicate of the value. Read more
1.0.0 · 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 ObjectPropertyCode
impl Debug for ObjectPropertyCode
Source§impl From<ObjectPropertyCode> for u16
impl From<ObjectPropertyCode> for u16
Source§fn from(enum_value: ObjectPropertyCode) -> Self
fn from(enum_value: ObjectPropertyCode) -> Self
Converts to this type from the input type.
Source§impl From<u16> for ObjectPropertyCode
impl From<u16> for ObjectPropertyCode
Source§impl FromPrimitive for ObjectPropertyCode
impl FromPrimitive for ObjectPropertyCode
Source§impl Hash for ObjectPropertyCode
impl Hash for ObjectPropertyCode
Source§impl PartialEq for ObjectPropertyCode
impl PartialEq for ObjectPropertyCode
impl Copy for ObjectPropertyCode
impl Eq for ObjectPropertyCode
impl StructuralPartialEq for ObjectPropertyCode
Auto Trait Implementations§
impl Freeze for ObjectPropertyCode
impl RefUnwindSafe for ObjectPropertyCode
impl Send for ObjectPropertyCode
impl Sync for ObjectPropertyCode
impl Unpin for ObjectPropertyCode
impl UnsafeUnpin for ObjectPropertyCode
impl UnwindSafe for ObjectPropertyCode
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