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