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<&DocumentHmac>;
fn display(&self) -> String;
fn user_access_keys(&self) -> &Vec<UserAccessInfo>;
fn folder_access_key(&self) -> &EncryptedFolderAccessKey;
// 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<&DocumentHmac>
fn display(&self) -> String
fn user_access_keys(&self) -> &Vec<UserAccessInfo>
fn folder_access_key(&self) -> &EncryptedFolderAccessKey
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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.