pub struct ResponsesServerEvent(pub ResponseStreamEvent);Expand description
Server events emitted by the Responses WebSocket server.
JSON schema
{
"description": "Server events emitted by the Responses WebSocket server.\n",
"anyOf": [
{
"$ref": "#/components/schemas/ResponseStreamEvent"
}
]
}Tuple Fields§
§0: ResponseStreamEventTrait Implementations§
Source§impl Clone for ResponsesServerEvent
impl Clone for ResponsesServerEvent
Source§fn clone(&self) -> ResponsesServerEvent
fn clone(&self) -> ResponsesServerEvent
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 ResponsesServerEvent
impl Debug for ResponsesServerEvent
Source§impl Deref for ResponsesServerEvent
impl Deref for ResponsesServerEvent
Source§type Target = ResponseStreamEvent
type Target = ResponseStreamEvent
The resulting type after dereferencing.
Source§fn deref(&self) -> &ResponseStreamEvent
fn deref(&self) -> &ResponseStreamEvent
Dereferences the value.
Source§impl<'de> Deserialize<'de> for ResponsesServerEvent
impl<'de> Deserialize<'de> for ResponsesServerEvent
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<ResponseStreamEvent> for ResponsesServerEvent
impl From<ResponseStreamEvent> for ResponsesServerEvent
Source§fn from(value: ResponseStreamEvent) -> Self
fn from(value: ResponseStreamEvent) -> Self
Converts to this type from the input type.
Source§impl From<ResponsesServerEvent> for ResponseStreamEvent
impl From<ResponsesServerEvent> for ResponseStreamEvent
Source§fn from(value: ResponsesServerEvent) -> Self
fn from(value: ResponsesServerEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponsesServerEvent
impl RefUnwindSafe for ResponsesServerEvent
impl Send for ResponsesServerEvent
impl Sync for ResponsesServerEvent
impl Unpin for ResponsesServerEvent
impl UnsafeUnpin for ResponsesServerEvent
impl UnwindSafe for ResponsesServerEvent
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