pub struct StreamDiagnostic {
pub kind: String,
pub payload: Value,
pub metadata: Map<String, Value>,
}Expand description
Diagnostic sideband event emitted during model streaming.
Fields§
§kind: StringStable diagnostic event kind.
payload: ValueStructured diagnostic payload. Must not contain secrets or raw request bodies.
metadata: Map<String, Value>Diagnostic metadata.
Implementations§
Trait Implementations§
Source§impl Clone for StreamDiagnostic
impl Clone for StreamDiagnostic
Source§fn clone(&self) -> StreamDiagnostic
fn clone(&self) -> StreamDiagnostic
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 StreamDiagnostic
impl Debug for StreamDiagnostic
Source§impl<'de> Deserialize<'de> for StreamDiagnostic
impl<'de> Deserialize<'de> for StreamDiagnostic
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 StreamDiagnostic
Source§impl PartialEq for StreamDiagnostic
impl PartialEq for StreamDiagnostic
Source§impl Serialize for StreamDiagnostic
impl Serialize for StreamDiagnostic
impl StructuralPartialEq for StreamDiagnostic
Auto Trait Implementations§
impl Freeze for StreamDiagnostic
impl RefUnwindSafe for StreamDiagnostic
impl Send for StreamDiagnostic
impl Sync for StreamDiagnostic
impl Unpin for StreamDiagnostic
impl UnsafeUnpin for StreamDiagnostic
impl UnwindSafe for StreamDiagnostic
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