pub struct ProtocolWarning {
pub code: ProtocolWarningCode,
pub message: String,
pub target: Option<String>,
pub details: Option<ProtocolWarningDetails>,
}Fields§
§code: ProtocolWarningCode§message: String§target: Option<String>§details: Option<ProtocolWarningDetails>Implementations§
Source§impl ProtocolWarning
impl ProtocolWarning
pub fn new(code: ProtocolWarningCode, message: impl Into<String>) -> Self
pub fn with_target(self, target: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ProtocolWarning
impl Clone for ProtocolWarning
Source§fn clone(&self) -> ProtocolWarning
fn clone(&self) -> ProtocolWarning
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 ProtocolWarning
impl Debug for ProtocolWarning
Source§impl<'de> Deserialize<'de> for ProtocolWarning
impl<'de> Deserialize<'de> for ProtocolWarning
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 ProtocolWarning
impl PartialEq for ProtocolWarning
Source§impl Serialize for ProtocolWarning
impl Serialize for ProtocolWarning
impl Eq for ProtocolWarning
impl StructuralPartialEq for ProtocolWarning
Auto Trait Implementations§
impl Freeze for ProtocolWarning
impl RefUnwindSafe for ProtocolWarning
impl Send for ProtocolWarning
impl Sync for ProtocolWarning
impl Unpin for ProtocolWarning
impl UnsafeUnpin for ProtocolWarning
impl UnwindSafe for ProtocolWarning
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