#[non_exhaustive]pub struct ReactStartCodegenJobDataBuilder { /* private fields */ }Expand description
A builder for ReactStartCodegenJobData.
Implementations§
source§impl ReactStartCodegenJobDataBuilder
impl ReactStartCodegenJobDataBuilder
sourcepub fn set_module(self, input: Option<JsModule>) -> Self
pub fn set_module(self, input: Option<JsModule>) -> Self
The JavaScript module type.
sourcepub fn get_module(&self) -> &Option<JsModule>
pub fn get_module(&self) -> &Option<JsModule>
The JavaScript module type.
sourcepub fn set_target(self, input: Option<JsTarget>) -> Self
pub fn set_target(self, input: Option<JsTarget>) -> Self
The ECMAScript specification to use.
sourcepub fn get_target(&self) -> &Option<JsTarget>
pub fn get_target(&self) -> &Option<JsTarget>
The ECMAScript specification to use.
sourcepub fn set_script(self, input: Option<JsScript>) -> Self
pub fn set_script(self, input: Option<JsScript>) -> Self
The file type to use for a JavaScript project.
sourcepub fn get_script(&self) -> &Option<JsScript>
pub fn get_script(&self) -> &Option<JsScript>
The file type to use for a JavaScript project.
sourcepub fn render_type_declarations(self, input: bool) -> Self
pub fn render_type_declarations(self, input: bool) -> Self
Specifies whether the code generation job should render type declaration files.
sourcepub fn set_render_type_declarations(self, input: Option<bool>) -> Self
pub fn set_render_type_declarations(self, input: Option<bool>) -> Self
Specifies whether the code generation job should render type declaration files.
sourcepub fn get_render_type_declarations(&self) -> &Option<bool>
pub fn get_render_type_declarations(&self) -> &Option<bool>
Specifies whether the code generation job should render type declaration files.
sourcepub fn inline_source_map(self, input: bool) -> Self
pub fn inline_source_map(self, input: bool) -> Self
Specifies whether the code generation job should render inline source maps.
sourcepub fn set_inline_source_map(self, input: Option<bool>) -> Self
pub fn set_inline_source_map(self, input: Option<bool>) -> Self
Specifies whether the code generation job should render inline source maps.
sourcepub fn get_inline_source_map(&self) -> &Option<bool>
pub fn get_inline_source_map(&self) -> &Option<bool>
Specifies whether the code generation job should render inline source maps.
sourcepub fn api_configuration(self, input: ApiConfiguration) -> Self
pub fn api_configuration(self, input: ApiConfiguration) -> Self
The API configuration for the code generation job.
sourcepub fn set_api_configuration(self, input: Option<ApiConfiguration>) -> Self
pub fn set_api_configuration(self, input: Option<ApiConfiguration>) -> Self
The API configuration for the code generation job.
sourcepub fn get_api_configuration(&self) -> &Option<ApiConfiguration>
pub fn get_api_configuration(&self) -> &Option<ApiConfiguration>
The API configuration for the code generation job.
sourcepub fn dependencies(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn dependencies(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to dependencies.
To override the contents of this collection use set_dependencies.
Lists the dependency packages that may be required for the project code to run.
sourcepub fn set_dependencies(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_dependencies(self, input: Option<HashMap<String, String>>) -> Self
Lists the dependency packages that may be required for the project code to run.
sourcepub fn get_dependencies(&self) -> &Option<HashMap<String, String>>
pub fn get_dependencies(&self) -> &Option<HashMap<String, String>>
Lists the dependency packages that may be required for the project code to run.
sourcepub fn build(self) -> ReactStartCodegenJobData
pub fn build(self) -> ReactStartCodegenJobData
Consumes the builder and constructs a ReactStartCodegenJobData.
Trait Implementations§
source§impl Clone for ReactStartCodegenJobDataBuilder
impl Clone for ReactStartCodegenJobDataBuilder
source§fn clone(&self) -> ReactStartCodegenJobDataBuilder
fn clone(&self) -> ReactStartCodegenJobDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ReactStartCodegenJobDataBuilder
impl Default for ReactStartCodegenJobDataBuilder
source§fn default() -> ReactStartCodegenJobDataBuilder
fn default() -> ReactStartCodegenJobDataBuilder
source§impl PartialEq for ReactStartCodegenJobDataBuilder
impl PartialEq for ReactStartCodegenJobDataBuilder
source§fn eq(&self, other: &ReactStartCodegenJobDataBuilder) -> bool
fn eq(&self, other: &ReactStartCodegenJobDataBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ReactStartCodegenJobDataBuilder
Auto Trait Implementations§
impl Freeze for ReactStartCodegenJobDataBuilder
impl RefUnwindSafe for ReactStartCodegenJobDataBuilder
impl Send for ReactStartCodegenJobDataBuilder
impl Sync for ReactStartCodegenJobDataBuilder
impl Unpin for ReactStartCodegenJobDataBuilder
impl UnwindSafe for ReactStartCodegenJobDataBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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