pub struct RealtimeTranscriptionSessionCreateResponseClientSecret {
pub value: String,
pub expires_at: u64,
}
Expand description
Ephemeral key returned by the API. Only present when the session is created on the server via REST API.
Fields§
§value: String
Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.
expires_at: u64
Timestamp for when the token expires. Currently, all tokens expire after one minute.
Implementations§
Source§impl RealtimeTranscriptionSessionCreateResponseClientSecret
impl RealtimeTranscriptionSessionCreateResponseClientSecret
Sourcepub fn builder() -> RealtimeTranscriptionSessionCreateResponseClientSecretBuilder<((), ())>
pub fn builder() -> RealtimeTranscriptionSessionCreateResponseClientSecretBuilder<((), ())>
Create a builder for building RealtimeTranscriptionSessionCreateResponseClientSecret
.
On the builder, call .value(...)
, .expires_at(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeTranscriptionSessionCreateResponseClientSecret
.
Trait Implementations§
Source§impl Clone for RealtimeTranscriptionSessionCreateResponseClientSecret
impl Clone for RealtimeTranscriptionSessionCreateResponseClientSecret
Source§fn clone(&self) -> RealtimeTranscriptionSessionCreateResponseClientSecret
fn clone(&self) -> RealtimeTranscriptionSessionCreateResponseClientSecret
Returns a duplicate of the value. Read more
1.0.0 · 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 RealtimeTranscriptionSessionCreateResponseClientSecret
impl<'de> Deserialize<'de> for RealtimeTranscriptionSessionCreateResponseClientSecret
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 RealtimeTranscriptionSessionCreateResponseClientSecret
impl PartialEq for RealtimeTranscriptionSessionCreateResponseClientSecret
Source§fn eq(
&self,
other: &RealtimeTranscriptionSessionCreateResponseClientSecret,
) -> bool
fn eq( &self, other: &RealtimeTranscriptionSessionCreateResponseClientSecret, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeTranscriptionSessionCreateResponseClientSecret
Auto Trait Implementations§
impl Freeze for RealtimeTranscriptionSessionCreateResponseClientSecret
impl RefUnwindSafe for RealtimeTranscriptionSessionCreateResponseClientSecret
impl Send for RealtimeTranscriptionSessionCreateResponseClientSecret
impl Sync for RealtimeTranscriptionSessionCreateResponseClientSecret
impl Unpin for RealtimeTranscriptionSessionCreateResponseClientSecret
impl UnwindSafe for RealtimeTranscriptionSessionCreateResponseClientSecret
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