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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DriveFiles
impl RefUnwindSafe for DriveFiles
impl Send for DriveFiles
impl Sync for DriveFiles
impl Unpin for DriveFiles
impl UnwindSafe for DriveFiles
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