pub struct RealtimeSessionCreateResponseClientSecret {
pub expires_at: i32,
pub value: String,
}
Fields§
§expires_at: i32
Timestamp for when the token expires. Currently, all tokens expire after one minute.
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.
Trait Implementations§
Source§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
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