1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// this file is @generated
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct StreamPortalAccessIn {
/// The set of feature flags the created token will have access to.
#[serde(rename = "featureFlags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub feature_flags: Option<std::collections::BTreeSet<String>>,
/// How long the token will be valid for, in seconds.
///
/// Valid values are between 1 hour and 7 days. The default is 7 days.
#[serde(skip_serializing_if = "Option::is_none")]
pub expiry: Option<u64>,
/// An optional session ID to attach to the token.
///
/// When expiring tokens with "Expire All", you can include the session ID
/// to only expire tokens that were created with that session ID.
#[serde(rename = "sessionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub session_id: Option<String>,
}
impl StreamPortalAccessIn {
pub fn new() -> Self {
Self {
feature_flags: None,
expiry: None,
session_id: None,
}
}
}
impl Default for StreamPortalAccessIn {
fn default() -> Self {
Self::new()
}
}