Struct obake::VersionMismatch
source · pub struct VersionMismatch {
pub expected: &'static str,
pub found: &'static str,
}
Expand description
A struct representing a mismatch of versions.
Such a mismatch can occur when trying to convert a version-tagged representation of a piece of data into a particular version.
Fields§
§expected: &'static str
The expected version.
found: &'static str
The version found.
Trait Implementations§
source§impl Clone for VersionMismatch
impl Clone for VersionMismatch
source§fn clone(&self) -> VersionMismatch
fn clone(&self) -> VersionMismatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VersionMismatch
impl Debug for VersionMismatch
source§impl PartialEq<VersionMismatch> for VersionMismatch
impl PartialEq<VersionMismatch> for VersionMismatch
source§fn eq(&self, other: &VersionMismatch) -> bool
fn eq(&self, other: &VersionMismatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VersionMismatch
impl Eq for VersionMismatch
impl StructuralEq for VersionMismatch
impl StructuralPartialEq for VersionMismatch
Auto Trait Implementations§
impl RefUnwindSafe for VersionMismatch
impl Send for VersionMismatch
impl Sync for VersionMismatch
impl Unpin for VersionMismatch
impl UnwindSafe for VersionMismatch
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