pub struct PluginDiagnostic {
pub code: String,
pub severity: PluginDiagnosticSeverity,
pub message: String,
pub attributes: BTreeMap<String, String>,
}Fields§
§code: String§severity: PluginDiagnosticSeverity§message: String§attributes: BTreeMap<String, String>Implementations§
Source§impl PluginDiagnostic
impl PluginDiagnostic
pub fn validate(&self) -> Result<(), PluginProtocolViolation>
Trait Implementations§
Source§impl Clone for PluginDiagnostic
impl Clone for PluginDiagnostic
Source§fn clone(&self) -> PluginDiagnostic
fn clone(&self) -> PluginDiagnostic
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 PluginDiagnostic
impl Debug for PluginDiagnostic
Source§impl<'de> Deserialize<'de> for PluginDiagnostic
impl<'de> Deserialize<'de> for PluginDiagnostic
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 PluginDiagnostic
Source§impl PartialEq for PluginDiagnostic
impl PartialEq for PluginDiagnostic
Source§impl Serialize for PluginDiagnostic
impl Serialize for PluginDiagnostic
impl StructuralPartialEq for PluginDiagnostic
Auto Trait Implementations§
impl Freeze for PluginDiagnostic
impl RefUnwindSafe for PluginDiagnostic
impl Send for PluginDiagnostic
impl Sync for PluginDiagnostic
impl Unpin for PluginDiagnostic
impl UnsafeUnpin for PluginDiagnostic
impl UnwindSafe for PluginDiagnostic
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