pub struct InfluxDbReporterBuilder { /* private fields */ }
Expand description
Builder for InfluxDbReporter
.
Implementations§
source§impl InfluxDbReporterBuilder
impl InfluxDbReporterBuilder
pub fn registry(&mut self, value: Arc<MetricsRegistry>) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn interval_secs(&mut self, value: u64) -> &mut Self
pub fn database<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn username<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self
pub fn password<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self
pub fn measurement_prefix<VALUE: Into<String>>( &mut self, value: VALUE ) -> &mut Self
pub fn batch_size(&mut self, value: usize) -> &mut Self
sourcepub fn build(&self) -> Result<InfluxDbReporter, InfluxDbReporterBuilderError>
pub fn build(&self) -> Result<InfluxDbReporter, InfluxDbReporterBuilderError>
Trait Implementations§
source§impl Clone for InfluxDbReporterBuilder
impl Clone for InfluxDbReporterBuilder
source§fn clone(&self) -> InfluxDbReporterBuilder
fn clone(&self) -> InfluxDbReporterBuilder
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for InfluxDbReporterBuilder
impl Send for InfluxDbReporterBuilder
impl Sync for InfluxDbReporterBuilder
impl Unpin for InfluxDbReporterBuilder
impl !UnwindSafe for InfluxDbReporterBuilder
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