pub struct ToolEmbedSession {
pub tool_id: String,
pub parent_origin: String,
pub preset: Option<Object>,
pub locked_parameters: Vec<String>,
pub source: Option<Object>,
pub branding: Option<Object>,
pub host_reference: Option<String>,
pub ttl_seconds: Option<u32>,
}Expand description
The fields of a TOOL embed session: one tool workspace in your page, charged like the API.
let session = wellfriend::ToolEmbedSession::new("compress-pdf", "https://app.example.com");Fields§
§tool_id: StringThe tool the page shows, for example compress-pdf.
parent_origin: StringThe origin of the page that embeds the tool.
preset: Option<Object>Option values the workspace opens with.
locked_parameters: Vec<String>Options the user cannot change.
source: Option<Object>A stored document the workspace opens with (documentId, optional versionId).
branding: Option<Object>Your own labels and colours.
host_reference: Option<String>Your own reference, returned with the session.
ttl_seconds: Option<u32>How long the session lives, in seconds.
Implementations§
Trait Implementations§
Source§impl Clone for ToolEmbedSession
impl Clone for ToolEmbedSession
Source§impl Debug for ToolEmbedSession
impl Debug for ToolEmbedSession
Source§impl Default for ToolEmbedSession
impl Default for ToolEmbedSession
Source§impl PartialEq for ToolEmbedSession
impl PartialEq for ToolEmbedSession
Source§impl Serialize for ToolEmbedSession
impl Serialize for ToolEmbedSession
impl StructuralPartialEq for ToolEmbedSession
Auto Trait Implementations§
impl Forget for ToolEmbedSession
impl Freeze for ToolEmbedSession
impl Move for ToolEmbedSession
impl RefUnwindSafe for ToolEmbedSession
impl Send for ToolEmbedSession
impl Sync for ToolEmbedSession
impl Unpin for ToolEmbedSession
impl UnsafeUnpin for ToolEmbedSession
impl UnwindSafe for ToolEmbedSession
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