pub struct ObjectInfo {Show 20 fields
pub handle: ObjectHandle,
pub storage_id: StorageId,
pub format: ObjectFormatCode,
pub protection_status: ProtectionStatus,
pub size: u64,
pub thumb_format: ObjectFormatCode,
pub thumb_size: u32,
pub thumb_width: u32,
pub thumb_height: u32,
pub image_width: u32,
pub image_height: u32,
pub image_bit_depth: u32,
pub parent: ObjectHandle,
pub association_type: AssociationType,
pub association_desc: u32,
pub sequence_number: u32,
pub filename: String,
pub created: Option<DateTime>,
pub modified: Option<DateTime>,
pub keywords: String,
}Expand description
Object information returned by GetObjectInfo.
Contains file/folder metadata including name, size, timestamps, and hierarchy info.
Fields§
§handle: ObjectHandleObject handle (set after parsing, not part of protocol data).
storage_id: StorageIdStorage containing this object.
format: ObjectFormatCodeObject format code.
protection_status: ProtectionStatusProtection status.
size: u64Object size in bytes.
Note: Protocol uses u32, but we store as u64. Values of 0xFFFFFFFF indicate the object is larger than 4GB (use GetObjectPropValue for actual size).
thumb_format: ObjectFormatCodeThumbnail format.
thumb_size: u32Thumbnail size in bytes.
thumb_width: u32Thumbnail width in pixels.
thumb_height: u32Thumbnail height in pixels.
image_width: u32Image width in pixels.
image_height: u32Image height in pixels.
image_bit_depth: u32Image bit depth.
parent: ObjectHandleParent object handle (ROOT for root-level objects).
association_type: AssociationTypeAssociation type (folder type).
association_desc: u32Association description.
sequence_number: u32Sequence number.
filename: StringFilename.
created: Option<DateTime>Creation timestamp.
modified: Option<DateTime>Modification timestamp.
keywords: StringKeywords string.
Implementations§
Source§impl ObjectInfo
impl ObjectInfo
Sourcepub fn from_bytes(buf: &[u8]) -> Result<Self, Error>
pub fn from_bytes(buf: &[u8]) -> Result<Self, Error>
Parse ObjectInfo from a byte buffer.
The buffer should contain the ObjectInfo dataset as returned by GetObjectInfo.
Sourcepub fn to_bytes(&self) -> Result<Vec<u8>, Error>
pub fn to_bytes(&self) -> Result<Vec<u8>, Error>
Serialize ObjectInfo to a byte buffer.
Used for SendObjectInfo operation.
Returns an error if the created or modified DateTime contains invalid values.
Trait Implementations§
Source§impl Clone for ObjectInfo
impl Clone for ObjectInfo
Source§fn clone(&self) -> ObjectInfo
fn clone(&self) -> ObjectInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more