Struct querent_synapse::config::config_builder::ConfigBuilder
source · pub struct ConfigBuilder { /* private fields */ }
Expand description
Builder for constructing a Config
.
Implementations§
source§impl ConfigBuilder
impl ConfigBuilder
sourcepub fn querent_id(self, querent_id: String) -> Self
pub fn querent_id(self, querent_id: String) -> Self
Sets the querent ID for the Config
.
sourcepub fn querent_name(self, querent_name: String) -> Self
pub fn querent_name(self, querent_name: String) -> Self
Sets the querent name for the Config
.
sourcepub fn workflow(self, workflow: WorkflowConfig) -> Self
pub fn workflow(self, workflow: WorkflowConfig) -> Self
Sets the workflow for the Config
.
sourcepub fn collectors(self, collectors: Vec<CollectorConfig>) -> Self
pub fn collectors(self, collectors: Vec<CollectorConfig>) -> Self
Sets the collectors for the Config
.
sourcepub fn engines(self, engines: Vec<EngineConfig>) -> Self
pub fn engines(self, engines: Vec<EngineConfig>) -> Self
Sets the engines for the Config
.
sourcepub fn resource(self, resource: Option<ResourceConfig>) -> Self
pub fn resource(self, resource: Option<ResourceConfig>) -> Self
Sets the resource for the Config
.
sourcepub fn event_sender(self, event_sender: Sender<(EventType, EventState)>) -> Self
pub fn event_sender(self, event_sender: Sender<(EventType, EventState)>) -> Self
Sets the event sender for the Config
.
sourcepub fn event_handler(self, event_handler: EventHandler) -> Self
pub fn event_handler(self, event_handler: EventHandler) -> Self
Sets the event handler for the Config
.
sourcepub fn channel_handler(self, channel_handler: ChannelHandler) -> Self
pub fn channel_handler(self, channel_handler: ChannelHandler) -> Self
Sets the channel handler for the Config
.
Trait Implementations§
source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl !RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl !UnwindSafe for ConfigBuilder
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