Struct fp_bindgen::TsExtendedRuntimeConfig
source · [−]#[non_exhaustive]pub struct TsExtendedRuntimeConfig {
pub msgpack_module: String,
pub generate_raw_export_wrappers: bool,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.msgpack_module: String
The module from which to import the MessagePack dependency.
By default, “@msgpack/msgpack” is used, which should work with Node.js and most NPM-based bundlers. If you use Deno, you may wish to specify “https://unpkg.com/@msgpack/msgpack/mod.ts”.
generate_raw_export_wrappers: bool
Whether or not to generate raw export wrappers.
Raw export wrappers allow you to call fp_export!
functions from the
runtime while passing raw MessagePack data, which you can use in some
situations to avoid (de)serialization overhead. If you don’t need these
wrappers, you can omit them to optimize your bundle size.
Raw export wrappers are named similarly to the regular wrappers (which
are generated in any case), but with a Raw
suffix.
Implementations
sourceimpl TsExtendedRuntimeConfig
impl TsExtendedRuntimeConfig
sourcepub fn with_msgpack_module(self, msgpack_module: &str) -> Self
pub fn with_msgpack_module(self, msgpack_module: &str) -> Self
Sets the msgpack_module
setting.
sourcepub fn with_raw_export_wrappers(self) -> Self
pub fn with_raw_export_wrappers(self) -> Self
Enables the generate_raw_export_wrappers
setting.
Trait Implementations
sourceimpl Clone for TsExtendedRuntimeConfig
impl Clone for TsExtendedRuntimeConfig
sourcefn clone(&self) -> TsExtendedRuntimeConfig
fn clone(&self) -> TsExtendedRuntimeConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TsExtendedRuntimeConfig
impl Debug for TsExtendedRuntimeConfig
Auto Trait Implementations
impl RefUnwindSafe for TsExtendedRuntimeConfig
impl Send for TsExtendedRuntimeConfig
impl Sync for TsExtendedRuntimeConfig
impl Unpin for TsExtendedRuntimeConfig
impl UnwindSafe for TsExtendedRuntimeConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more