pub trait FileLike: PartialEq + Debug + Clone + AsRef<FileMetadata> {
Show 16 methods
// Required methods
fn id(&self) -> &Uuid;
fn file_type(&self) -> FileType;
fn parent(&self) -> &Uuid;
fn secret_name(&self) -> &SecretFileName;
fn owner(&self) -> Owner;
fn explicitly_deleted(&self) -> bool;
fn document_hmac(&self) -> Option<&[u8; 32]>;
fn display(&self) -> String;
fn user_access_keys(&self) -> &Vec<UserAccessInfo>;
fn folder_access_key(&self) -> &AESEncrypted<[u8; 32]>;
// Provided methods
fn is_folder(&self) -> bool { ... }
fn is_link(&self) -> bool { ... }
fn is_document(&self) -> bool { ... }
fn is_root(&self) -> bool { ... }
fn access_mode(&self, pk: &Owner) -> Option<UserAccessMode> { ... }
fn is_shared(&self) -> bool { ... }
}Required Methods§
fn id(&self) -> &Uuid
fn file_type(&self) -> FileType
fn parent(&self) -> &Uuid
fn secret_name(&self) -> &SecretFileName
fn owner(&self) -> Owner
fn explicitly_deleted(&self) -> bool
fn document_hmac(&self) -> Option<&[u8; 32]>
fn display(&self) -> String
fn user_access_keys(&self) -> &Vec<UserAccessInfo>
fn folder_access_key(&self) -> &AESEncrypted<[u8; 32]>
Provided Methods§
fn is_folder(&self) -> bool
fn is_link(&self) -> bool
fn is_document(&self) -> bool
fn is_root(&self) -> bool
fn access_mode(&self, pk: &Owner) -> Option<UserAccessMode>
Object Safety§
This trait is not object safe.