Struct endbasic_std::storage::DriveFiles
source · pub struct DriveFiles { /* private fields */ }
Expand description
Collection of entries in the store and their metadata. Used to represent the result of the
Drive::enumerate
call.
Implementations§
source§impl DriveFiles
impl DriveFiles
sourcepub fn new(
dirents: BTreeMap<String, Metadata>,
disk_quota: Option<DiskSpace>,
disk_free: Option<DiskSpace>
) -> Self
pub fn new(
dirents: BTreeMap<String, Metadata>,
disk_quota: Option<DiskSpace>,
disk_free: Option<DiskSpace>
) -> Self
Creates a new collection of files with the given dirents
.
sourcepub fn dirents(&self) -> &BTreeMap<String, Metadata>
pub fn dirents(&self) -> &BTreeMap<String, Metadata>
Returns the collection of files in this result.
sourcepub fn disk_quota(&self) -> &Option<DiskSpace>
pub fn disk_quota(&self) -> &Option<DiskSpace>
Returns the user’s disk quota, if known.