[−][src]Struct onedrive_api::ItemLocation
Reference to a DriveItem
in a drive.
It does not contains the drive information.
See also
Implementations
impl<'a> ItemLocation<'a>
[src]
pub fn from_path(path: &'a str) -> Option<Self>
[src]
A UNIX-like /
-started absolute path to a file or directory in the drive.
Error
If path
contains invalid characters for OneDrive API, it returns None.
Note
The trailing /
is optional.
Special name on Windows like CON
or NUL
is tested to be permitted in API,
but may still cause errors on Windows or OneDrive Online.
These names will pass the check, but STRONGLY NOT recommended.
See also
pub fn from_id(item_id: &'a ItemId) -> Self
[src]
Item id from other API.
pub fn root() -> Self
[src]
The root directory item.
pub fn child_of_id(parent_id: &'a ItemId, child_name: &'a FileName) -> Self
[src]
The child item in a directory.
Trait Implementations
impl<'a> Clone for ItemLocation<'a>
[src]
pub fn clone(&self) -> ItemLocation<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for ItemLocation<'a>
[src]
impl<'a> Debug for ItemLocation<'a>
[src]
impl<'a> From<&'a ItemId> for ItemLocation<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ItemLocation<'a>
[src]
impl<'a> Send for ItemLocation<'a>
[src]
impl<'a> Sync for ItemLocation<'a>
[src]
impl<'a> Unpin for ItemLocation<'a>
[src]
impl<'a> UnwindSafe for ItemLocation<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,