#[non_exhaustive]pub struct MotorWarning {
pub kind: MotorWarningKind,
pub message: String,
}Expand description
A warning for flying a catalog motor’s file, with what it is about.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: MotorWarningKindWhat the warning is about.
message: StringThe warning, in words.
Trait Implementations§
Source§impl Clone for MotorWarning
impl Clone for MotorWarning
Source§fn clone(&self) -> MotorWarning
fn clone(&self) -> MotorWarning
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 MotorWarning
impl Debug for MotorWarning
Source§impl<'de> Deserialize<'de> for MotorWarning
impl<'de> Deserialize<'de> for MotorWarning
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
Source§impl PartialEq for MotorWarning
impl PartialEq for MotorWarning
Source§fn eq(&self, other: &MotorWarning) -> bool
fn eq(&self, other: &MotorWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MotorWarning
impl Serialize for MotorWarning
impl StructuralPartialEq for MotorWarning
Auto Trait Implementations§
impl Freeze for MotorWarning
impl RefUnwindSafe for MotorWarning
impl Send for MotorWarning
impl Sync for MotorWarning
impl Unpin for MotorWarning
impl UnsafeUnpin for MotorWarning
impl UnwindSafe for MotorWarning
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