pub struct RealtimeTranslationClientSecretExpiresAfter {
pub anchor: Option<RealtimeTranslationClientSecretExpiresAnchor>,
pub seconds: Option<u32>,
}Expand description
Configuration for the client secret expiration. Expiration refers to the time after which a client secret will no longer be valid for creating sessions. The session itself may continue after that time once started. A secret can be used to create multiple sessions until it expires.
Fields§
§anchor: Option<RealtimeTranslationClientSecretExpiresAnchor>The anchor point for the client secret expiration, meaning that
seconds will be added to the created_at time of the client
secret to produce an expiration timestamp. Only created_at is currently supported.
seconds: Option<u32>The number of seconds from the anchor point to the expiration. Select a value between
10 and 7200 (2 hours). Defaults to 600 seconds (10 minutes) if not specified.
Trait Implementations§
Source§impl Clone for RealtimeTranslationClientSecretExpiresAfter
impl Clone for RealtimeTranslationClientSecretExpiresAfter
Source§fn clone(&self) -> RealtimeTranslationClientSecretExpiresAfter
fn clone(&self) -> RealtimeTranslationClientSecretExpiresAfter
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 Default for RealtimeTranslationClientSecretExpiresAfter
impl Default for RealtimeTranslationClientSecretExpiresAfter
Source§fn default() -> RealtimeTranslationClientSecretExpiresAfter
fn default() -> RealtimeTranslationClientSecretExpiresAfter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeTranslationClientSecretExpiresAfter
impl<'de> Deserialize<'de> for RealtimeTranslationClientSecretExpiresAfter
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RealtimeTranslationClientSecretExpiresAfter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RealtimeTranslationClientSecretExpiresAfter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RealtimeTranslationClientSecretExpiresAfter
impl Serialize for RealtimeTranslationClientSecretExpiresAfter
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RealtimeTranslationClientSecretExpiresAfter
impl RefUnwindSafe for RealtimeTranslationClientSecretExpiresAfter
impl Send for RealtimeTranslationClientSecretExpiresAfter
impl Sync for RealtimeTranslationClientSecretExpiresAfter
impl Unpin for RealtimeTranslationClientSecretExpiresAfter
impl UnsafeUnpin for RealtimeTranslationClientSecretExpiresAfter
impl UnwindSafe for RealtimeTranslationClientSecretExpiresAfter
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