pub struct Builder<T>(/* private fields */);
Expand description
A builder for Influx1Locator
Implementations§
Source§impl Builder<DatabaseStage>
impl Builder<DatabaseStage>
Sourcepub fn database(self, database: DatabaseName) -> Builder<MeasurementStage>
pub fn database(self, database: DatabaseName) -> Builder<MeasurementStage>
Sets the database
field.
Source§impl Builder<MeasurementStage>
impl Builder<MeasurementStage>
Sourcepub fn measurement(self, measurement: MeasurementName) -> Builder<FieldStage>
pub fn measurement(self, measurement: MeasurementName) -> Builder<FieldStage>
Sets the measurement
field.
Source§impl Builder<FieldStage>
impl Builder<FieldStage>
Source§impl Builder<TypeStage>
impl Builder<TypeStage>
Sourcepub fn type_(self, type_: InfluxType) -> Builder<Complete>
pub fn type_(self, type_: InfluxType) -> Builder<Complete>
Sets the type_
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn database(self, database: DatabaseName) -> Self
pub fn database(self, database: DatabaseName) -> Self
Sets the database
field.
Sourcepub fn measurement(self, measurement: MeasurementName) -> Self
pub fn measurement(self, measurement: MeasurementName) -> Self
Sets the measurement
field.
Adds an entry to the tags
field.
Sets the tags
field.
Adds entries to the tags
field.
Sourcepub fn type_(self, type_: InfluxType) -> Self
pub fn type_(self, type_: InfluxType) -> Self
Sets the type_
field.
Sourcepub fn build(self) -> Influx1Locator
pub fn build(self) -> Influx1Locator
Consumes the builder, returning a Influx1Locator
.
Trait Implementations§
Source§impl Default for Builder<DatabaseStage>
impl Default for Builder<DatabaseStage>
Source§impl From<Influx1Locator> for Builder<Complete>
impl From<Influx1Locator> for Builder<Complete>
Source§fn from(v: Influx1Locator) -> Self
fn from(v: Influx1Locator) -> 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