IntoVersionIdent

Trait IntoVersionIdent 

Source
pub trait IntoVersionIdent<'a> {
    // Required method
    fn into_id(self) -> Result<Cow<'a, VersionIdent>>;
}
Expand description

A fallible conversion to Cow<'a, VersionIdent>.

This is used in methods on crate::Client to add flexibility in the argument types.

This usually clones the input, unless you pass it a reference an already constructed VersionIdent, in which case no copying will be performed.

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoVersionIdent<'_> for &str

Source§

fn into_id(self) -> Result<Cow<'static, VersionIdent>>

Source§

impl IntoVersionIdent<'_> for String

Source§

fn into_id(self) -> Result<Cow<'static, VersionIdent>>

Implementors§

Source§

impl<'a> IntoVersionIdent<'a> for &'a VersionIdent

Source§

impl<T> IntoVersionIdent<'_> for T
where T: Into<VersionIdent>,