pub struct JsModuleSpec {
pub name: String,
pub mode: EmbeddingMode,
}
Expand description
Specifies a JS module to be evaluated in the generated component.
Fields§
§name: String
§mode: EmbeddingMode
Implementations§
Trait Implementations§
Source§impl Clone for JsModuleSpec
impl Clone for JsModuleSpec
Source§fn clone(&self) -> JsModuleSpec
fn clone(&self) -> JsModuleSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for JsModuleSpec
impl RefUnwindSafe for JsModuleSpec
impl Send for JsModuleSpec
impl Sync for JsModuleSpec
impl Unpin for JsModuleSpec
impl UnwindSafe for JsModuleSpec
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