pub struct GetTokenOptions {
pub model: ModelId,
pub expires_after_seconds: Option<u64>,
pub session_config: Option<RealtimeSessionConfig>,
}Expand description
Options for RealtimeFactory::get_token.
Fields§
§model: ModelIdModel to open the session with.
expires_after_seconds: Option<u64>Requested lifetime in seconds.
session_config: Option<RealtimeSessionConfig>Initial session configuration.
Trait Implementations§
Source§impl Clone for GetTokenOptions
impl Clone for GetTokenOptions
Source§fn clone(&self) -> GetTokenOptions
fn clone(&self) -> GetTokenOptions
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 GetTokenOptions
impl Debug for GetTokenOptions
Source§impl<'de> Deserialize<'de> for GetTokenOptions
impl<'de> Deserialize<'de> for GetTokenOptions
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 GetTokenOptions
impl PartialEq for GetTokenOptions
Source§impl Serialize for GetTokenOptions
impl Serialize for GetTokenOptions
impl StructuralPartialEq for GetTokenOptions
Auto Trait Implementations§
impl Freeze for GetTokenOptions
impl RefUnwindSafe for GetTokenOptions
impl Send for GetTokenOptions
impl Sync for GetTokenOptions
impl Unpin for GetTokenOptions
impl UnsafeUnpin for GetTokenOptions
impl UnwindSafe for GetTokenOptions
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