#[non_exhaustive]pub struct ResponseCancelEvent {
pub type_: ResponseCancelEventType,
pub event_id: Option<Option<String>>,
pub response_id: Option<Option<String>>,
pub rest: Rest,
}Expand description
Source: openai/types/realtime/response_cancel_event.py, ResponseCancelEvent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_: ResponseCancelEventType§event_id: Option<Option<String>>§response_id: Option<Option<String>>§rest: RestImplementations§
Source§impl ResponseCancelEvent
impl ResponseCancelEvent
Sourcepub fn builder(type_: ResponseCancelEventType) -> ResponseCancelEventBuilder
pub fn builder(type_: ResponseCancelEventType) -> ResponseCancelEventBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ResponseCancelEvent
impl Clone for ResponseCancelEvent
Source§impl Debug for ResponseCancelEvent
impl Debug for ResponseCancelEvent
Source§impl DeclaredFields for ResponseCancelEvent
impl DeclaredFields for ResponseCancelEvent
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ResponseCancelEvent
impl<'de> Deserialize<'de> for ResponseCancelEvent
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 ResponseCancelEvent
impl PartialEq for ResponseCancelEvent
Source§impl Serialize for ResponseCancelEvent
impl Serialize for ResponseCancelEvent
impl StructuralPartialEq for ResponseCancelEvent
Auto Trait Implementations§
impl Freeze for ResponseCancelEvent
impl RefUnwindSafe for ResponseCancelEvent
impl Send for ResponseCancelEvent
impl Sync for ResponseCancelEvent
impl Unpin for ResponseCancelEvent
impl UnsafeUnpin for ResponseCancelEvent
impl UnwindSafe for ResponseCancelEvent
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