pub struct GreetingConfig {
pub enable: Option<bool>,
pub content: Option<String>,
}Available on crate feature
realtime only.Expand description
Optional server-generated greeting configuration.
Fields§
§enable: Option<bool>Whether the greeting is enabled.
content: Option<String>Greeting text supplied to the model.
Trait Implementations§
Source§impl Clone for GreetingConfig
impl Clone for GreetingConfig
Source§fn clone(&self) -> GreetingConfig
fn clone(&self) -> GreetingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GreetingConfig
impl Debug for GreetingConfig
Source§impl Default for GreetingConfig
impl Default for GreetingConfig
Source§fn default() -> GreetingConfig
fn default() -> GreetingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GreetingConfig
impl<'de> Deserialize<'de> for GreetingConfig
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
Auto Trait Implementations§
impl Freeze for GreetingConfig
impl RefUnwindSafe for GreetingConfig
impl Send for GreetingConfig
impl Sync for GreetingConfig
impl Unpin for GreetingConfig
impl UnsafeUnpin for GreetingConfig
impl UnwindSafe for GreetingConfig
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