pub struct TranspileConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TranspileConfigBuilder<S>
impl<S: State> TranspileConfigBuilder<S>
Sourcepub fn build(self) -> TranspileConfigwhere
S: IsComplete,
pub fn build(self) -> TranspileConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn opts(self, value: TranspileOpts) -> TranspileConfigBuilder<SetOpts<S>>where
S::Opts: IsUnset,
pub fn opts(self, value: TranspileOpts) -> TranspileConfigBuilder<SetOpts<S>>where
S::Opts: IsUnset,
Optional (Some / Option setters).
Default: <TranspileOpts as Default>::default().
Options shared with transpile and generate_types.
Sourcepub fn maybe_opts(
self,
value: Option<TranspileOpts>,
) -> TranspileConfigBuilder<SetOpts<S>>where
S::Opts: IsUnset,
pub fn maybe_opts(
self,
value: Option<TranspileOpts>,
) -> TranspileConfigBuilder<SetOpts<S>>where
S::Opts: IsUnset,
Optional (Some / Option setters).
Default: <TranspileOpts as Default>::default().
Options shared with transpile and generate_types.
Sourcepub fn call_tracking(
self,
value: bool,
) -> TranspileConfigBuilder<SetCallTracking<S>>where
S::CallTracking: IsUnset,
pub fn call_tracking(
self,
value: bool,
) -> TranspileConfigBuilder<SetCallTracking<S>>where
S::CallTracking: IsUnset,
Sourcepub fn maybe_call_tracking(
self,
value: Option<bool>,
) -> TranspileConfigBuilder<SetCallTracking<S>>where
S::CallTracking: IsUnset,
pub fn maybe_call_tracking(
self,
value: Option<bool>,
) -> TranspileConfigBuilder<SetCallTracking<S>>where
S::CallTracking: IsUnset,
Sourcepub fn optional_result_payloads(
self,
value: bool,
) -> TranspileConfigBuilder<SetOptionalResultPayloads<S>>where
S::OptionalResultPayloads: IsUnset,
pub fn optional_result_payloads(
self,
value: bool,
) -> TranspileConfigBuilder<SetOptionalResultPayloads<S>>where
S::OptionalResultPayloads: IsUnset,
Sourcepub fn maybe_optional_result_payloads(
self,
value: Option<bool>,
) -> TranspileConfigBuilder<SetOptionalResultPayloads<S>>where
S::OptionalResultPayloads: IsUnset,
pub fn maybe_optional_result_payloads(
self,
value: Option<bool>,
) -> TranspileConfigBuilder<SetOptionalResultPayloads<S>>where
S::OptionalResultPayloads: IsUnset,
Sourcepub fn type_generation(
self,
value: TypeGenerationConfig,
) -> TranspileConfigBuilder<SetTypeGeneration<S>>where
S::TypeGeneration: IsUnset,
pub fn type_generation(
self,
value: TypeGenerationConfig,
) -> TranspileConfigBuilder<SetTypeGeneration<S>>where
S::TypeGeneration: IsUnset,
Sourcepub fn maybe_type_generation(
self,
value: Option<TypeGenerationConfig>,
) -> TranspileConfigBuilder<SetTypeGeneration<S>>where
S::TypeGeneration: IsUnset,
pub fn maybe_type_generation(
self,
value: Option<TypeGenerationConfig>,
) -> TranspileConfigBuilder<SetTypeGeneration<S>>where
S::TypeGeneration: IsUnset,
Sourcepub fn cm_runtime_es_module(
self,
value: String,
) -> TranspileConfigBuilder<SetCmRuntimeEsModule<S>>where
S::CmRuntimeEsModule: IsUnset,
pub fn cm_runtime_es_module(
self,
value: String,
) -> TranspileConfigBuilder<SetCmRuntimeEsModule<S>>where
S::CmRuntimeEsModule: IsUnset,
Optional (Some / Option setters).
Package or directory base for the experimental Component Model runtime.
Generated bindings import named exports from runtime and intrinsics/* subpaths.
Intrinsics are generated inline when this is None (the default),
unless the embedded-cm-runtime Cargo feature is enabled: the runtime
shipped with this crate is then bundled into the generated bindings.
Requires the external-runtime Cargo feature.
Sourcepub fn maybe_cm_runtime_es_module(
self,
value: Option<String>,
) -> TranspileConfigBuilder<SetCmRuntimeEsModule<S>>where
S::CmRuntimeEsModule: IsUnset,
pub fn maybe_cm_runtime_es_module(
self,
value: Option<String>,
) -> TranspileConfigBuilder<SetCmRuntimeEsModule<S>>where
S::CmRuntimeEsModule: IsUnset,
Optional (Some / Option setters).
Package or directory base for the experimental Component Model runtime.
Generated bindings import named exports from runtime and intrinsics/* subpaths.
Intrinsics are generated inline when this is None (the default),
unless the embedded-cm-runtime Cargo feature is enabled: the runtime
shipped with this crate is then bundled into the generated bindings.
Requires the external-runtime Cargo feature.
Auto Trait Implementations§
impl<S> Forget for TranspileConfigBuilder<S>
impl<S> Freeze for TranspileConfigBuilder<S>
impl<S> Move for TranspileConfigBuilder<S>
impl<S> RefUnwindSafe for TranspileConfigBuilder<S>
impl<S> Send for TranspileConfigBuilder<S>
impl<S> Sync for TranspileConfigBuilder<S>
impl<S> Unpin for TranspileConfigBuilder<S>
impl<S> UnsafeUnpin for TranspileConfigBuilder<S>
impl<S> UnwindSafe for TranspileConfigBuilder<S>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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