pub struct RealtimeClientEventResponseCancel {
pub event_id: Option<String>,
pub response_id: Option<String>,
}
Expand description
Send this event to cancel an in-progress response. The server will respond
with a response.cancelled
event or an error if there is no response to
cancel.
Fields§
§event_id: Option<String>
Optional client-generated ID used to identify this event.
response_id: Option<String>
A specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.
Implementations§
Source§impl RealtimeClientEventResponseCancel
impl RealtimeClientEventResponseCancel
Sourcepub fn builder() -> RealtimeClientEventResponseCancelBuilder<((), ())>
pub fn builder() -> RealtimeClientEventResponseCancelBuilder<((), ())>
Create a builder for building RealtimeClientEventResponseCancel
.
On the builder, call .event_id(...)
(optional), .response_id(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeClientEventResponseCancel
.
Trait Implementations§
Source§impl Clone for RealtimeClientEventResponseCancel
impl Clone for RealtimeClientEventResponseCancel
Source§fn clone(&self) -> RealtimeClientEventResponseCancel
fn clone(&self) -> RealtimeClientEventResponseCancel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for RealtimeClientEventResponseCancel
impl Default for RealtimeClientEventResponseCancel
Source§fn default() -> RealtimeClientEventResponseCancel
fn default() -> RealtimeClientEventResponseCancel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeClientEventResponseCancel
impl<'de> Deserialize<'de> for RealtimeClientEventResponseCancel
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 RealtimeClientEventResponseCancel
impl PartialEq for RealtimeClientEventResponseCancel
Source§fn eq(&self, other: &RealtimeClientEventResponseCancel) -> bool
fn eq(&self, other: &RealtimeClientEventResponseCancel) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeClientEventResponseCancel
Auto Trait Implementations§
impl Freeze for RealtimeClientEventResponseCancel
impl RefUnwindSafe for RealtimeClientEventResponseCancel
impl Send for RealtimeClientEventResponseCancel
impl Sync for RealtimeClientEventResponseCancel
impl Unpin for RealtimeClientEventResponseCancel
impl UnwindSafe for RealtimeClientEventResponseCancel
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