pub struct AgentDiagnostic {
pub code: String,
pub severity: AgentDiagnosticSeverity,
pub span: Option<AgentSourceSpan>,
pub parser_id: Option<String>,
pub expected_shape: Option<String>,
pub source_excerpt_bounds: Option<SourceExcerptBounds>,
pub repair_hint: Option<String>,
pub message: String,
}Fields§
§code: String§severity: AgentDiagnosticSeverity§span: Option<AgentSourceSpan>§parser_id: Option<String>§expected_shape: Option<String>§source_excerpt_bounds: Option<SourceExcerptBounds>§repair_hint: Option<String>§message: StringTrait Implementations§
Source§impl Clone for AgentDiagnostic
impl Clone for AgentDiagnostic
Source§fn clone(&self) -> AgentDiagnostic
fn clone(&self) -> AgentDiagnostic
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 AgentDiagnostic
impl Debug for AgentDiagnostic
Source§impl<'de> Deserialize<'de> for AgentDiagnostic
impl<'de> Deserialize<'de> for AgentDiagnostic
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 AgentDiagnostic
Source§impl PartialEq for AgentDiagnostic
impl PartialEq for AgentDiagnostic
Source§fn eq(&self, other: &AgentDiagnostic) -> bool
fn eq(&self, other: &AgentDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentDiagnostic
impl Serialize for AgentDiagnostic
impl StructuralPartialEq for AgentDiagnostic
Auto Trait Implementations§
impl Freeze for AgentDiagnostic
impl RefUnwindSafe for AgentDiagnostic
impl Send for AgentDiagnostic
impl Sync for AgentDiagnostic
impl Unpin for AgentDiagnostic
impl UnsafeUnpin for AgentDiagnostic
impl UnwindSafe for AgentDiagnostic
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