[][src]Struct onedrive_api::ItemLocation

pub struct ItemLocation<'a> { /* fields omitted */ }

Reference to a DriveItem in a drive. It does not contains the drive information.

See also

resource::DriveItem

Microsoft Docs

Methods

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

Microsoft Docs

pub fn from_id(item_id: &'a ItemId) -> Self[src]

Item id from other API.

pub fn root() -> Self[src]

The root directory item.

Trait Implementations

impl<'a> Copy for ItemLocation<'a>[src]

impl<'a> From<&'a ItemId> for ItemLocation<'a>[src]

impl<'a> Clone for ItemLocation<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for ItemLocation<'a>[src]

Auto Trait Implementations

impl<'a> Send for ItemLocation<'a>

impl<'a> Sync for ItemLocation<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T