pub struct RealtimeTranslationClientSecretCreateResponse {
pub value: String,
pub expires_at: u64,
pub session: RealtimeTranslationSession,
}Expand description
Response from creating a translation session and client secret for the Realtime API.
Fields§
§value: StringThe generated client secret value.
expires_at: u64Expiration timestamp for the client secret, in seconds since epoch.
session: RealtimeTranslationSessionThe translation session.
Trait Implementations§
Source§impl Clone for RealtimeTranslationClientSecretCreateResponse
impl Clone for RealtimeTranslationClientSecretCreateResponse
Source§fn clone(&self) -> RealtimeTranslationClientSecretCreateResponse
fn clone(&self) -> RealtimeTranslationClientSecretCreateResponse
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<'de> Deserialize<'de> for RealtimeTranslationClientSecretCreateResponse
impl<'de> Deserialize<'de> for RealtimeTranslationClientSecretCreateResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RealtimeTranslationClientSecretCreateResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RealtimeTranslationClientSecretCreateResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RealtimeTranslationClientSecretCreateResponse
impl Serialize for RealtimeTranslationClientSecretCreateResponse
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 RealtimeTranslationClientSecretCreateResponse
impl RefUnwindSafe for RealtimeTranslationClientSecretCreateResponse
impl Send for RealtimeTranslationClientSecretCreateResponse
impl Sync for RealtimeTranslationClientSecretCreateResponse
impl Unpin for RealtimeTranslationClientSecretCreateResponse
impl UnsafeUnpin for RealtimeTranslationClientSecretCreateResponse
impl UnwindSafe for RealtimeTranslationClientSecretCreateResponse
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