pub enum Version {
V3,
}
Expand description
Firefox Send API version selector.
Variants§
V3
Firefox Send v3.
Implementations§
Source§impl Version
impl Version
Sourcepub fn parse<'a>(ver: &'a str) -> Result<Self, &'a str>
pub fn parse<'a>(ver: &'a str) -> Result<Self, &'a str>
Attempt to parse the API version from a version number string.
If the given version number string could not be matched to a known
(or not compiled due to a missing compiler feature) API version an
Err
is returning holding the version string.
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.