pub struct Whereabouts {
pub drive: Drive,
pub mount: PathBuf,
pub folder: Option<Vec<u8>>,
pub path: Option<String>,
pub computer: Option<Vec<u8>>,
pub phone: bool,
}Expand description
Where a folder is now.
Fields§
§drive: DriveThe drive that holds it.
mount: PathBufThe folder that the drive is mounted at.
folder: Option<Vec<u8>>The folder’s ID on its file system, if the file system keeps IDs that a move keeps.
path: Option<String>The folder’s path on the drive, from Whereabouts::mount, or None in an app’s own
folder on a phone.
computer: Option<Vec<u8>>The computer’s ID, if the system gives one: on a phone, the phone’s.
phone: boolWhether this is an app’s own folder on a phone, where the phone’s ID has to be there and match.
Trait Implementations§
Source§impl Clone for Whereabouts
impl Clone for Whereabouts
Source§impl Debug for Whereabouts
impl Debug for Whereabouts
impl Eq for Whereabouts
Source§impl PartialEq for Whereabouts
impl PartialEq for Whereabouts
impl StructuralPartialEq for Whereabouts
Auto Trait Implementations§
impl Forget for Whereabouts
impl Freeze for Whereabouts
impl Move for Whereabouts
impl RefUnwindSafe for Whereabouts
impl Send for Whereabouts
impl Sync for Whereabouts
impl Unpin for Whereabouts
impl UnsafeUnpin for Whereabouts
impl UnwindSafe for Whereabouts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.