pub struct MaxDiagnostic {Show 15 fields
pub lsp: Diagnostic,
pub diagnostic_id: String,
pub law_id: String,
pub attempted_transition: Option<TransitionAttempt>,
pub violated_axes: Vec<String>,
pub doc_routes: Vec<DocRoute>,
pub repair_actions: Vec<RepairAction>,
pub verification_gates: Vec<GateId>,
pub receipt_obligation: Option<ReceiptObligation>,
pub law_axis: LawAxis,
pub violated_invariant: String,
pub observed_state: Value,
pub expected_state: Value,
pub repairability: Repairability,
pub terminality: Terminality,
}Fields§
§lsp: Diagnostic§diagnostic_id: String§law_id: String§attempted_transition: Option<TransitionAttempt>§violated_axes: Vec<String>§doc_routes: Vec<DocRoute>§repair_actions: Vec<RepairAction>§verification_gates: Vec<GateId>§receipt_obligation: Option<ReceiptObligation>§law_axis: LawAxis§violated_invariant: String§observed_state: Value§expected_state: Value§repairability: Repairability§terminality: TerminalityImplementations§
Source§impl MaxDiagnostic
impl MaxDiagnostic
Sourcepub fn into_lsp(self) -> Diagnostic
pub fn into_lsp(self) -> Diagnostic
Projects the MaxDiagnostic down into a standard lsp_types_max::Diagnostic.
Trait Implementations§
Source§impl Clone for MaxDiagnostic
impl Clone for MaxDiagnostic
Source§fn clone(&self) -> MaxDiagnostic
fn clone(&self) -> MaxDiagnostic
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 MaxDiagnostic
impl Debug for MaxDiagnostic
Source§impl Default for MaxDiagnostic
impl Default for MaxDiagnostic
Source§impl<'de> Deserialize<'de> for MaxDiagnostic
impl<'de> Deserialize<'de> for MaxDiagnostic
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
Auto Trait Implementations§
impl !Freeze for MaxDiagnostic
impl !RefUnwindSafe for MaxDiagnostic
impl Send for MaxDiagnostic
impl Sync for MaxDiagnostic
impl Unpin for MaxDiagnostic
impl UnsafeUnpin for MaxDiagnostic
impl UnwindSafe for MaxDiagnostic
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