pub struct DiagnosticProjection { /* private fields */ }Expand description
Product-owned projection of a stable diagnostic to every legacy surface.
Implementations§
Source§impl DiagnosticProjection
impl DiagnosticProjection
Sourcepub const fn cli_exit_code(&self) -> u8
pub const fn cli_exit_code(&self) -> u8
Returns the CLI process exit code.
Sourcepub const fn http_status(&self) -> u16
pub const fn http_status(&self) -> u16
Returns the REST HTTP status.
Sourcepub const fn mcp_error_code(&self) -> i32
pub const fn mcp_error_code(&self) -> i32
Returns the JSON-RPC/MCP error code, or zero for non-errors.
Sourcepub const fn event_severity(&self) -> DiagnosticSeverity
pub const fn event_severity(&self) -> DiagnosticSeverity
Returns lifecycle event severity.
Trait Implementations§
Source§impl Clone for DiagnosticProjection
impl Clone for DiagnosticProjection
Source§fn clone(&self) -> DiagnosticProjection
fn clone(&self) -> DiagnosticProjection
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 DiagnosticProjection
impl Debug for DiagnosticProjection
Source§impl<'de> Deserialize<'de> for DiagnosticProjection
impl<'de> Deserialize<'de> for DiagnosticProjection
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 DiagnosticProjection
impl PartialEq for DiagnosticProjection
Source§fn eq(&self, other: &DiagnosticProjection) -> bool
fn eq(&self, other: &DiagnosticProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DiagnosticProjection
impl StructuralPartialEq for DiagnosticProjection
Auto Trait Implementations§
impl Freeze for DiagnosticProjection
impl RefUnwindSafe for DiagnosticProjection
impl Send for DiagnosticProjection
impl Sync for DiagnosticProjection
impl Unpin for DiagnosticProjection
impl UnsafeUnpin for DiagnosticProjection
impl UnwindSafe for DiagnosticProjection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.