Trait IntoCowPath

Source
pub trait IntoCowPath<'a> {
    // Required method
    fn into_cow_path(self) -> Cow<'a, Path>;
}
Expand description

Conversion trait necessary for Multipart::add_file() to accept borrowed or owned strings and borrowed or owned paths

Required Methods§

Source

fn into_cow_path(self) -> Cow<'a, Path>

Self-explanatory, hopefully

Implementations on Foreign Types§

Source§

impl IntoCowPath<'static> for String

Source§

fn into_cow_path(self) -> Cow<'static, Path>

Source§

impl IntoCowPath<'static> for PathBuf

Source§

fn into_cow_path(self) -> Cow<'static, Path>

Source§

impl<'a> IntoCowPath<'a> for &'a str

Source§

fn into_cow_path(self) -> Cow<'a, Path>

Source§

impl<'a> IntoCowPath<'a> for &'a Path

Source§

fn into_cow_path(self) -> Cow<'a, Path>

Source§

impl<'a> IntoCowPath<'a> for Cow<'a, Path>

Source§

fn into_cow_path(self) -> Cow<'a, Path>

Implementors§