pub struct WebBundle {
pub html: GeneratedHtml,
pub css: GeneratedCss,
pub js: GeneratedJs,
pub validation: ValidationReport,
}Expand description
Complete web asset bundle generated by Probar
Fields§
§html: GeneratedHtmlGenerated HTML document
css: GeneratedCssGenerated CSS stylesheet
js: GeneratedJsGenerated JavaScript (minimal WASM loader)
validation: ValidationReportValidation report for all assets
Implementations§
Source§impl WebBundle
impl WebBundle
Sourcepub fn new(html: GeneratedHtml, css: GeneratedCss, js: GeneratedJs) -> Self
pub fn new(html: GeneratedHtml, css: GeneratedCss, js: GeneratedJs) -> Self
Create a new web bundle from components
Sourcepub fn to_single_file(&self) -> String
pub fn to_single_file(&self) -> String
Get the complete HTML document with embedded CSS and JS
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebBundle
impl RefUnwindSafe for WebBundle
impl Send for WebBundle
impl Sync for WebBundle
impl Unpin for WebBundle
impl UnsafeUnpin for WebBundle
impl UnwindSafe for WebBundle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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