#[non_exhaustive]pub struct ResponseCreateEvent {
pub type_: ResponseCreateEventType,
pub event_id: Option<Option<String>>,
pub response: Option<Option<RealtimeResponseCreateParams>>,
pub rest: Rest,
}Expand description
Source: openai/types/realtime/response_create_event.py, ResponseCreateEvent.
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_: ResponseCreateEventType§event_id: Option<Option<String>>§response: Option<Option<RealtimeResponseCreateParams>>§rest: RestImplementations§
Source§impl ResponseCreateEvent
impl ResponseCreateEvent
Sourcepub fn builder(type_: ResponseCreateEventType) -> ResponseCreateEventBuilder
pub fn builder(type_: ResponseCreateEventType) -> ResponseCreateEventBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ResponseCreateEvent
impl Clone for ResponseCreateEvent
Source§impl Debug for ResponseCreateEvent
impl Debug for ResponseCreateEvent
Source§impl DeclaredFields for ResponseCreateEvent
impl DeclaredFields for ResponseCreateEvent
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ResponseCreateEvent
impl<'de> Deserialize<'de> for ResponseCreateEvent
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 ResponseCreateEvent
impl PartialEq for ResponseCreateEvent
Source§impl Serialize for ResponseCreateEvent
impl Serialize for ResponseCreateEvent
impl StructuralPartialEq for ResponseCreateEvent
Auto Trait Implementations§
impl Freeze for ResponseCreateEvent
impl RefUnwindSafe for ResponseCreateEvent
impl Send for ResponseCreateEvent
impl Sync for ResponseCreateEvent
impl Unpin for ResponseCreateEvent
impl UnsafeUnpin for ResponseCreateEvent
impl UnwindSafe for ResponseCreateEvent
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