pub struct BundleSession {
pub flows_json: String,
pub contents_json: String,
pub assets: Vec<(String, Vec<u8>)>,
pub capabilities_used: Vec<String>,
}Expand description
Host-side mirror of WIT
greentic:extension-bundle/bundling@0.1.0::designer-session.
The full payload the host hands to a bundle extension to render.
flows_json and contents_json are pre-serialised JSON blobs from
the designer; assets carries auxiliary file bytes (images, fonts,
vendored resources) keyed by their relative path inside the bundle.
Fields§
§flows_json: String§contents_json: String§assets: Vec<(String, Vec<u8>)>§capabilities_used: Vec<String>Trait Implementations§
Source§impl Clone for BundleSession
impl Clone for BundleSession
Source§fn clone(&self) -> BundleSession
fn clone(&self) -> BundleSession
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 BundleSession
impl Debug for BundleSession
Source§impl Default for BundleSession
impl Default for BundleSession
Source§fn default() -> BundleSession
fn default() -> BundleSession
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BundleSession
impl RefUnwindSafe for BundleSession
impl Send for BundleSession
impl Sync for BundleSession
impl Unpin for BundleSession
impl UnsafeUnpin for BundleSession
impl UnwindSafe for BundleSession
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more