pub enum MashlibMode {
Cdn {
version: String,
},
Local,
Module {
url: String,
},
}Expand description
How to load the mashlib bundle.
Variants§
Cdn
Load from unpkg CDN. version is e.g. "2.0.0".
Local
Serve from a local directory (operator sets up actix-files /
tower-http::ServeDir). The HTML references /mashlib.min.js
and /mash.css at the server root.
Module
ES module entry point (the LOSOS pattern). The server emits
<div id="mashlib"> and a <script type="module" src="{url}">.
Trait Implementations§
Source§impl Clone for MashlibMode
impl Clone for MashlibMode
Source§fn clone(&self) -> MashlibMode
fn clone(&self) -> MashlibMode
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 MashlibMode
impl Debug for MashlibMode
Auto Trait Implementations§
impl Freeze for MashlibMode
impl RefUnwindSafe for MashlibMode
impl Send for MashlibMode
impl Sync for MashlibMode
impl Unpin for MashlibMode
impl UnsafeUnpin for MashlibMode
impl UnwindSafe for MashlibMode
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