pub struct RealtimeClientSecretCreateResponse {
pub value: Option<String>,
pub expires_at: Option<u64>,
pub client_secret: Option<RealtimeSessionClientSecret>,
pub secret: Option<String>,
pub session_type: Option<String>,
pub session: Option<RealtimeSessionPayload>,
pub extra: BTreeMap<String, Value>,
}Expand description
realtime.client_secrets.create 的返回值。
Fields§
§value: Option<String>官方 documented spec 返回的顶层 secret 值。
expires_at: Option<u64>官方 documented spec 返回的顶层过期时间。
client_secret: Option<RealtimeSessionClientSecret>新版结构化 client secret。
secret: Option<String>某些兼容 Provider 返回的扁平 secret 字段。
session_type: Option<String>会话配置类型。
session: Option<RealtimeSessionPayload>生效后的会话配置。
extra: BTreeMap<String, Value>额外字段。
Implementations§
Source§impl RealtimeClientSecretCreateResponse
impl RealtimeClientSecretCreateResponse
Sourcepub fn secret_value(&self) -> Option<&str>
pub fn secret_value(&self) -> Option<&str>
返回兼容不同 Provider 形态的 secret 值。
Trait Implementations§
Source§impl Clone for RealtimeClientSecretCreateResponse
impl Clone for RealtimeClientSecretCreateResponse
Source§fn clone(&self) -> RealtimeClientSecretCreateResponse
fn clone(&self) -> RealtimeClientSecretCreateResponse
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 Default for RealtimeClientSecretCreateResponse
impl Default for RealtimeClientSecretCreateResponse
Source§fn default() -> RealtimeClientSecretCreateResponse
fn default() -> RealtimeClientSecretCreateResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeClientSecretCreateResponse
impl<'de> Deserialize<'de> for RealtimeClientSecretCreateResponse
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 RealtimeClientSecretCreateResponse
impl RefUnwindSafe for RealtimeClientSecretCreateResponse
impl Send for RealtimeClientSecretCreateResponse
impl Sync for RealtimeClientSecretCreateResponse
impl Unpin for RealtimeClientSecretCreateResponse
impl UnsafeUnpin for RealtimeClientSecretCreateResponse
impl UnwindSafe for RealtimeClientSecretCreateResponse
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