pub struct Builder<T>(/* private fields */);
Expand description
A builder for ResolvedModuleVersionDefinition
Implementations§
Source§impl Builder<ModuleNameStage>
impl Builder<ModuleNameStage>
Sourcepub fn module_name(
self,
module_name: impl Into<String>,
) -> Builder<AssetRidStage>
pub fn module_name( self, module_name: impl Into<String>, ) -> Builder<AssetRidStage>
Sets the module_name
field.
Source§impl Builder<AssetRidStage>
impl Builder<AssetRidStage>
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn module_name(self, module_name: impl Into<String>) -> Self
pub fn module_name(self, module_name: impl Into<String>) -> Self
Sets the module_name
field.
Sourcepub fn push_resolved_parameters(
self,
resolved_parameters: ModuleVariable,
) -> Self
pub fn push_resolved_parameters( self, resolved_parameters: ModuleVariable, ) -> Self
Adds a value to the resolved_parameters
field.
Sourcepub fn resolved_parameters(
self,
resolved_parameters: impl IntoIterator<Item = ModuleVariable>,
) -> Self
pub fn resolved_parameters( self, resolved_parameters: impl IntoIterator<Item = ModuleVariable>, ) -> Self
Sets the resolved_parameters
field.
Sourcepub fn extend_resolved_parameters(
self,
resolved_parameters: impl IntoIterator<Item = ModuleVariable>,
) -> Self
pub fn extend_resolved_parameters( self, resolved_parameters: impl IntoIterator<Item = ModuleVariable>, ) -> Self
Adds values to the resolved_parameters
field.
Sourcepub fn push_default_variables(self, default_variables: ModuleVariable) -> Self
pub fn push_default_variables(self, default_variables: ModuleVariable) -> Self
Adds a value to the default_variables
field.
Sourcepub fn default_variables(
self,
default_variables: impl IntoIterator<Item = ModuleVariable>,
) -> Self
pub fn default_variables( self, default_variables: impl IntoIterator<Item = ModuleVariable>, ) -> Self
Sets the default_variables
field.
Sourcepub fn extend_default_variables(
self,
default_variables: impl IntoIterator<Item = ModuleVariable>,
) -> Self
pub fn extend_default_variables( self, default_variables: impl IntoIterator<Item = ModuleVariable>, ) -> Self
Adds values to the default_variables
field.
Sourcepub fn push_functions(self, functions: Function) -> Self
pub fn push_functions(self, functions: Function) -> Self
Adds a value to the functions
field.
Sourcepub fn functions(self, functions: impl IntoIterator<Item = Function>) -> Self
pub fn functions(self, functions: impl IntoIterator<Item = Function>) -> Self
Sets the functions
field.
Sourcepub fn extend_functions(
self,
functions: impl IntoIterator<Item = Function>,
) -> Self
pub fn extend_functions( self, functions: impl IntoIterator<Item = Function>, ) -> Self
Adds values to the functions
field.
Sourcepub fn build(self) -> ResolvedModuleVersionDefinition
pub fn build(self) -> ResolvedModuleVersionDefinition
Consumes the builder, returning a ResolvedModuleVersionDefinition
.
Trait Implementations§
Source§impl Default for Builder<ModuleNameStage>
impl Default for Builder<ModuleNameStage>
Source§impl From<ResolvedModuleVersionDefinition> for Builder<Complete>
impl From<ResolvedModuleVersionDefinition> for Builder<Complete>
Source§fn from(v: ResolvedModuleVersionDefinition) -> Self
fn from(v: ResolvedModuleVersionDefinition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request