pub struct ResponsesStreamEnvelope {
pub code: Option<String>,
pub complete_fields: Vec<String>,
pub message: Option<String>,
pub model: Option<ModelId>,
pub payload: Map<String, Value>,
pub provider: Option<ProviderId>,
pub request_id: Option<String>,
pub status: Option<i64>,
pub stop_reason: Option<String>,
pub type_: ResponsesStreamEnvelopeType,
pub usage: Option<Usage>,
}Expand description
ResponsesStreamEnvelope
JSON schema
{
"type": "object",
"required": [
"type"
],
"properties": {
"code": {
"type": "string"
},
"complete_fields": {
"type": "array",
"items": {
"type": "string"
}
},
"message": {
"type": "string"
},
"model": {
"$ref": "#/$defs/ModelId"
},
"payload": {
"type": "object",
"additionalProperties": true
},
"provider": {
"$ref": "#/$defs/ProviderId"
},
"request_id": {
"type": "string"
},
"status": {
"type": "integer"
},
"stop_reason": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"start",
"update",
"completion",
"error",
"keepalive",
"tool_use_start",
"tool_use_delta",
"tool_use_stop"
]
},
"usage": {
"$ref": "#/$defs/Usage"
}
}
}Fields§
§code: Option<String>§complete_fields: Vec<String>§message: Option<String>§model: Option<ModelId>§payload: Map<String, Value>§provider: Option<ProviderId>§request_id: Option<String>§status: Option<i64>§stop_reason: Option<String>§type_: ResponsesStreamEnvelopeType§usage: Option<Usage>Trait Implementations§
Source§impl Clone for ResponsesStreamEnvelope
impl Clone for ResponsesStreamEnvelope
Source§fn clone(&self) -> ResponsesStreamEnvelope
fn clone(&self) -> ResponsesStreamEnvelope
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponsesStreamEnvelope
impl Debug for ResponsesStreamEnvelope
Source§impl<'de> Deserialize<'de> for ResponsesStreamEnvelope
impl<'de> Deserialize<'de> for ResponsesStreamEnvelope
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 From<&ResponsesStreamEnvelope> for ResponsesStreamEnvelope
impl From<&ResponsesStreamEnvelope> for ResponsesStreamEnvelope
Source§fn from(value: &ResponsesStreamEnvelope) -> Self
fn from(value: &ResponsesStreamEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<ResponsesStreamEnvelope> for ModelRelayApi
impl From<ResponsesStreamEnvelope> for ModelRelayApi
Source§fn from(value: ResponsesStreamEnvelope) -> Self
fn from(value: ResponsesStreamEnvelope) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponsesStreamEnvelope
impl PartialEq for ResponsesStreamEnvelope
Source§impl Serialize for ResponsesStreamEnvelope
impl Serialize for ResponsesStreamEnvelope
impl StructuralPartialEq for ResponsesStreamEnvelope
Auto Trait Implementations§
impl Freeze for ResponsesStreamEnvelope
impl RefUnwindSafe for ResponsesStreamEnvelope
impl Send for ResponsesStreamEnvelope
impl Sync for ResponsesStreamEnvelope
impl Unpin for ResponsesStreamEnvelope
impl UnwindSafe for ResponsesStreamEnvelope
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)