pub struct ResponsesClientEventResponseCreate {
pub stream_id: Option<String>,
pub response: CreateResponse,
}Available on crate feature
response-types only.Expand description
Client event for creating a response over a persistent WebSocket connection.
This payload uses the same top-level fields as POST /v1/responses, plus WebSocket-only envelope metadata.
Notes:
streamis implicit over WebSocket and should not be sent.backgroundis not supported over WebSocket.stream_idis WebSocket-only and is not part ofPOST /v1/responses.
Fields§
§stream_id: Option<String>The WebSocket lane for this response. Requests with the same
stream_id are processed FIFO, and events for the response echo the
same stream_id.
stream_id controls routing; previous_response_id controls conversation lineage,
so a new lane can fork from a response created on another lane.
response: CreateResponseTrait Implementations§
Source§impl Clone for ResponsesClientEventResponseCreate
impl Clone for ResponsesClientEventResponseCreate
Source§fn clone(&self) -> ResponsesClientEventResponseCreate
fn clone(&self) -> ResponsesClientEventResponseCreate
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<'de> Deserialize<'de> for ResponsesClientEventResponseCreate
impl<'de> Deserialize<'de> for ResponsesClientEventResponseCreate
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 StructuralPartialEq for ResponsesClientEventResponseCreate
Auto Trait Implementations§
impl Freeze for ResponsesClientEventResponseCreate
impl RefUnwindSafe for ResponsesClientEventResponseCreate
impl Send for ResponsesClientEventResponseCreate
impl Sync for ResponsesClientEventResponseCreate
impl Unpin for ResponsesClientEventResponseCreate
impl UnsafeUnpin for ResponsesClientEventResponseCreate
impl UnwindSafe for ResponsesClientEventResponseCreate
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