pub struct ComponentConfigurationBuilder { /* private fields */ }Expand description
ComponentConfiguration builder.
Implementations§
source§impl ComponentConfigurationBuilder
impl ComponentConfigurationBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ComponentConfigurationBuilder.
sourcepub fn with_base(definition: ComponentConfiguration) -> Self
pub fn with_base(definition: ComponentConfiguration) -> Self
Create a builder with an existing manifest as a base.
sourcepub fn add_collection(
self,
name: impl AsRef<str>,
collection: ComponentDefinition
) -> Self
pub fn add_collection( self, name: impl AsRef<str>, collection: ComponentDefinition ) -> Self
Add a [CollectionDefinition] to the builder.
sourcepub fn add_flow(self, name: impl AsRef<str>, flow: FlowOperation) -> Self
pub fn add_flow(self, name: impl AsRef<str>, flow: FlowOperation) -> Self
Add a [Flow] to the builder.
sourcepub fn build(self) -> ComponentConfiguration
pub fn build(self) -> ComponentConfiguration
Consume the ComponentConfigurationBuilder and return a ComponentConfiguration.
Trait Implementations§
source§impl Clone for ComponentConfigurationBuilder
impl Clone for ComponentConfigurationBuilder
source§fn clone(&self) -> ComponentConfigurationBuilder
fn clone(&self) -> ComponentConfigurationBuilder
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 Default for ComponentConfigurationBuilder
impl Default for ComponentConfigurationBuilder
source§fn default() -> ComponentConfigurationBuilder
fn default() -> ComponentConfigurationBuilder
Returns the “default value” for a type. Read more