#[non_exhaustive]pub struct LiveSessionConfig {
pub model: String,
pub instructions: Option<String>,
pub audio: Option<LiveAudio>,
pub client: Option<LiveClientConfig>,
pub delegation: Option<Option<LiveDelegation>>,
pub initial_items: Option<Vec<Value>>,
pub triggers: Option<Vec<LiveDecisionTrigger>>,
pub rest: Rest,
}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.model: String§instructions: Option<String>§audio: Option<LiveAudio>§client: Option<LiveClientConfig>§delegation: Option<Option<LiveDelegation>>§initial_items: Option<Vec<Value>>§triggers: Option<Vec<LiveDecisionTrigger>>§rest: RestImplementations§
Source§impl LiveSessionConfig
impl LiveSessionConfig
Sourcepub fn builder(model: String) -> LiveSessionConfigBuilder
pub fn builder(model: String) -> LiveSessionConfigBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for LiveSessionConfig
impl Clone for LiveSessionConfig
Source§impl Debug for LiveSessionConfig
impl Debug for LiveSessionConfig
Source§impl DeclaredFields for LiveSessionConfig
impl DeclaredFields for LiveSessionConfig
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for LiveSessionConfig
impl<'de> Deserialize<'de> for LiveSessionConfig
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 LiveSessionConfig
impl PartialEq for LiveSessionConfig
Source§impl Serialize for LiveSessionConfig
impl Serialize for LiveSessionConfig
impl StructuralPartialEq for LiveSessionConfig
Auto Trait Implementations§
impl Freeze for LiveSessionConfig
impl RefUnwindSafe for LiveSessionConfig
impl Send for LiveSessionConfig
impl Sync for LiveSessionConfig
impl Unpin for LiveSessionConfig
impl UnsafeUnpin for LiveSessionConfig
impl UnwindSafe for LiveSessionConfig
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