pub struct ConvertWarning {
pub motor: String,
pub kind: WarningKind,
pub message: String,
}Expand description
Something the other format couldn’t hold as it was.
Fields§
§motor: StringThe motor it is about: its name or code.
kind: WarningKindWarningKind::Dropped for a value the other format has no place for;
WarningKind::Unusual for one written differently, such as a name with spaces.
message: StringWhat happened, for a person.
Trait Implementations§
Source§impl Clone for ConvertWarning
impl Clone for ConvertWarning
Source§fn clone(&self) -> ConvertWarning
fn clone(&self) -> ConvertWarning
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 moreSource§impl Debug for ConvertWarning
impl Debug for ConvertWarning
Source§impl<'de> Deserialize<'de> for ConvertWarning
impl<'de> Deserialize<'de> for ConvertWarning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConvertWarning
Source§impl PartialEq for ConvertWarning
impl PartialEq for ConvertWarning
Source§fn eq(&self, other: &ConvertWarning) -> bool
fn eq(&self, other: &ConvertWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConvertWarning
impl Serialize for ConvertWarning
impl StructuralPartialEq for ConvertWarning
Auto Trait Implementations§
impl Freeze for ConvertWarning
impl RefUnwindSafe for ConvertWarning
impl Send for ConvertWarning
impl Sync for ConvertWarning
impl Unpin for ConvertWarning
impl UnsafeUnpin for ConvertWarning
impl UnwindSafe for ConvertWarning
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