pub struct MissingField {
pub field: &'static str,
pub version: Version,
}Expand description
A field the target version requires that a version-neutral value does not carry.
The versions disagree about which parts of a signed meter value are mandatory — 2.0.1 requires all four, 2.1 requires the record and its encoding — so a value read from one version does not always fit another. Saying which field is missing is more use than refusing without a reason.
Fields§
§field: &'static strThe member the target version requires.
version: VersionThe version that requires it.
Trait Implementations§
Source§impl Clone for MissingField
impl Clone for MissingField
Source§fn clone(&self) -> MissingField
fn clone(&self) -> MissingField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MissingField
Source§impl Debug for MissingField
impl Debug for MissingField
Source§impl Display for MissingField
impl Display for MissingField
impl Eq for MissingField
Source§impl Error for MissingField
Available on crate feature std only.
impl Error for MissingField
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for MissingField
impl PartialEq for MissingField
impl StructuralPartialEq for MissingField
Auto Trait Implementations§
impl Freeze for MissingField
impl RefUnwindSafe for MissingField
impl Send for MissingField
impl Sync for MissingField
impl Unpin for MissingField
impl UnsafeUnpin for MissingField
impl UnwindSafe for MissingField
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