[][src]Struct onedrive_api::FileName

pub struct FileName(_);

An valid file name str (unsized).

Methods

impl FileName[src]

pub fn new<S: AsRef<str> + ?Sized>(name: &S) -> Option<&Self>[src]

Check and wrap the name for a file or a directory in OneDrive.

Returns None if contains invalid characters.

See also

ItemLocation::from_path

pub fn as_str(&self) -> &str[src]

View the file name as &str. It is cost-free.

Trait Implementations

impl AsRef<str> for FileName[src]

impl Debug for FileName[src]

Auto Trait Implementations

impl Send for FileName

impl Sync for FileName

Blanket Implementations

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]