pub struct EmbedTokenResponse {
pub token: Option<Option<String>>,
pub expiration: Option<Option<String>>,
pub raw_app: bool,
pub sandbox: bool,
pub app_path: Option<Option<String>>,
pub workspace_id: Option<Option<String>>,
}Fields§
§token: Option<Option<String>>Narrowly-scoped embed token for the iframe. Absent for fully anonymous or raw apps, which load without a scoped token.
expiration: Option<Option<String>>Expiration of the embed token.
raw_app: boolRaw apps render single-iframe and skip the opaque-viewer indirection and the embed token entirely.
sandbox: boolPublisher opted this app into sandbox isolation. When false the viewer runs the app same-origin with its full session.
app_path: Option<Option<String>>The resolved app path; the embedder uses it to scope the app’s backing localStorage per app.
workspace_id: Option<Option<String>>The resolved workspace; pairs with app_path so apps at the same path in different workspaces don’t share a localStorage store.
Implementations§
Source§impl EmbedTokenResponse
impl EmbedTokenResponse
pub fn new(raw_app: bool, sandbox: bool) -> EmbedTokenResponse
Trait Implementations§
Source§impl Clone for EmbedTokenResponse
impl Clone for EmbedTokenResponse
Source§fn clone(&self) -> EmbedTokenResponse
fn clone(&self) -> EmbedTokenResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmbedTokenResponse
impl Debug for EmbedTokenResponse
Source§impl Default for EmbedTokenResponse
impl Default for EmbedTokenResponse
Source§fn default() -> EmbedTokenResponse
fn default() -> EmbedTokenResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbedTokenResponse
impl<'de> Deserialize<'de> for EmbedTokenResponse
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 EmbedTokenResponse
impl PartialEq for EmbedTokenResponse
Source§fn eq(&self, other: &EmbedTokenResponse) -> bool
fn eq(&self, other: &EmbedTokenResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EmbedTokenResponse
impl Serialize for EmbedTokenResponse
impl StructuralPartialEq for EmbedTokenResponse
Auto Trait Implementations§
impl Freeze for EmbedTokenResponse
impl RefUnwindSafe for EmbedTokenResponse
impl Send for EmbedTokenResponse
impl Sync for EmbedTokenResponse
impl Unpin for EmbedTokenResponse
impl UnsafeUnpin for EmbedTokenResponse
impl UnwindSafe for EmbedTokenResponse
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