pub struct SafetyWarningDto {
pub kind: String,
pub message: String,
pub detail: Option<String>,
}Expand description
A flattened, transport-friendly representation of a safety warning.
Fields§
§kind: String§message: String§detail: Option<String>Trait Implementations§
Source§impl Clone for SafetyWarningDto
impl Clone for SafetyWarningDto
Source§fn clone(&self) -> SafetyWarningDto
fn clone(&self) -> SafetyWarningDto
Returns a duplicate 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 SafetyWarningDto
impl Debug for SafetyWarningDto
Source§impl<'de> Deserialize<'de> for SafetyWarningDto
impl<'de> Deserialize<'de> for SafetyWarningDto
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 From<&SafetyWarning> for SafetyWarningDto
impl From<&SafetyWarning> for SafetyWarningDto
Source§fn from(w: &SafetyWarning) -> Self
fn from(w: &SafetyWarning) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SafetyWarningDto
impl PartialEq for SafetyWarningDto
Source§impl Serialize for SafetyWarningDto
impl Serialize for SafetyWarningDto
impl Eq for SafetyWarningDto
impl StructuralPartialEq for SafetyWarningDto
Auto Trait Implementations§
impl Freeze for SafetyWarningDto
impl RefUnwindSafe for SafetyWarningDto
impl Send for SafetyWarningDto
impl Sync for SafetyWarningDto
impl Unpin for SafetyWarningDto
impl UnsafeUnpin for SafetyWarningDto
impl UnwindSafe for SafetyWarningDto
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