pub struct TreeEntry {
pub name: String,
pub hash: Hash,
pub size: u64,
pub link_type: LinkType,
pub key: Option<[u8; 32]>,
pub meta: Option<HashMap<String, Value>>,
}Expand description
Tree entry for directory listings
Fields§
§name: String§hash: Hash§size: u64§link_type: LinkTypeType of content this entry points to (Blob, File, or Dir)
key: Option<[u8; 32]>Optional decryption key (for encrypted content)
meta: Option<HashMap<String, Value>>Optional metadata (createdAt, mimeType, thumbnail, etc.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeEntry
impl RefUnwindSafe for TreeEntry
impl Send for TreeEntry
impl Sync for TreeEntry
impl Unpin for TreeEntry
impl UnwindSafe for TreeEntry
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