pub struct RealtimeSessionCreateResponseClientSecret {
pub value: String,
pub expires_at: i64,
}
Expand description
Ephemeral key returned by the 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: i64
Timestamp for when the token expires. Currently, all tokens expire after one minute.
Implementations§
Source§impl RealtimeSessionCreateResponseClientSecret
impl RealtimeSessionCreateResponseClientSecret
Sourcepub fn builder() -> RealtimeSessionCreateResponseClientSecretBuilder<((), ())>
pub fn builder() -> RealtimeSessionCreateResponseClientSecretBuilder<((), ())>
Create a builder for building RealtimeSessionCreateResponseClientSecret
.
On the builder, call .value(...)
, .expires_at(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeSessionCreateResponseClientSecret
.
Trait Implementations§
Source§impl Clone for RealtimeSessionCreateResponseClientSecret
impl Clone for RealtimeSessionCreateResponseClientSecret
Source§fn clone(&self) -> RealtimeSessionCreateResponseClientSecret
fn clone(&self) -> RealtimeSessionCreateResponseClientSecret
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for RealtimeSessionCreateResponseClientSecret
impl<'de> Deserialize<'de> for RealtimeSessionCreateResponseClientSecret
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 RealtimeSessionCreateResponseClientSecret
impl PartialEq for RealtimeSessionCreateResponseClientSecret
Source§fn eq(&self, other: &RealtimeSessionCreateResponseClientSecret) -> bool
fn eq(&self, other: &RealtimeSessionCreateResponseClientSecret) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeSessionCreateResponseClientSecret
Auto Trait Implementations§
impl Freeze for RealtimeSessionCreateResponseClientSecret
impl RefUnwindSafe for RealtimeSessionCreateResponseClientSecret
impl Send for RealtimeSessionCreateResponseClientSecret
impl Sync for RealtimeSessionCreateResponseClientSecret
impl Unpin for RealtimeSessionCreateResponseClientSecret
impl UnwindSafe for RealtimeSessionCreateResponseClientSecret
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