Struct perseus::server::ServerOptions
source · pub struct ServerOptions {
pub js_bundle: String,
pub wasm_bundle: String,
pub wasm_js_bundle: String,
pub snippets: String,
}
Expand description
The options for setting up all server integrations. This should be literally constructed, as nothing is optional. If integrations need further properties, they should expose their own options in addition to these.
Fields§
§js_bundle: String
The location on the filesystem of your JavaScript bundle.
wasm_bundle: String
The location on the filesystem of your Wasm bundle.
wasm_js_bundle: String
The location on the filesystem of your JS bundle converted from your Wasm bundle. This isn’t required, and if you haven’t generated this, you should provide a fake path.
snippets: String
The location of the JS interop snippets to be served as static files.
Trait Implementations§
source§impl Clone for ServerOptions
impl Clone for ServerOptions
source§fn clone(&self) -> ServerOptions
fn clone(&self) -> ServerOptions
Returns a copy 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 moresource§impl Debug for ServerOptions
impl Debug for ServerOptions
Auto Trait Implementations§
impl RefUnwindSafe for ServerOptions
impl Send for ServerOptions
impl Sync for ServerOptions
impl Unpin for ServerOptions
impl UnwindSafe for ServerOptions
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