Struct chirpstack_api::api::InfluxDbIntegration
source · pub struct InfluxDbIntegration {
pub application_id: String,
pub endpoint: String,
pub db: String,
pub username: String,
pub password: String,
pub retention_policy_name: String,
pub precision: i32,
pub version: i32,
pub token: String,
pub organization: String,
pub bucket: String,
}
Fields§
§application_id: String
Application ID (UUIO).
endpoint: String
InfluxDb API write endpoint (e.g. http://localhost:8086/write).
db: String
InfluxDb database name. (InfluxDb v1)
username: String
InfluxDb username. (InfluxDb v1)
password: String
InfluxDb password. (InfluxDb v1)
retention_policy_name: String
InfluxDb retention policy name. (InfluxDb v1)
precision: i32
InfluxDb timestamp precision (InfluxDb v1).
version: i32
InfluxDb version.
token: String
Token. (InfluxDb v2)
organization: String
Organization. (InfluxDb v2)
bucket: String
Bucket. (InfluxDb v2)
Implementations§
source§impl InfluxDbIntegration
impl InfluxDbIntegration
sourcepub fn precision(&self) -> InfluxDbPrecision
pub fn precision(&self) -> InfluxDbPrecision
Returns the enum value of precision
, or the default if the field is set to an invalid enum value.
sourcepub fn set_precision(&mut self, value: InfluxDbPrecision)
pub fn set_precision(&mut self, value: InfluxDbPrecision)
Sets precision
to the provided enum value.
sourcepub fn version(&self) -> InfluxDbVersion
pub fn version(&self) -> InfluxDbVersion
Returns the enum value of version
, or the default if the field is set to an invalid enum value.
sourcepub fn set_version(&mut self, value: InfluxDbVersion)
pub fn set_version(&mut self, value: InfluxDbVersion)
Sets version
to the provided enum value.
Trait Implementations§
source§impl Clone for InfluxDbIntegration
impl Clone for InfluxDbIntegration
source§fn clone(&self) -> InfluxDbIntegration
fn clone(&self) -> InfluxDbIntegration
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 Debug for InfluxDbIntegration
impl Debug for InfluxDbIntegration
source§impl Default for InfluxDbIntegration
impl Default for InfluxDbIntegration
source§impl Message for InfluxDbIntegration
impl Message for InfluxDbIntegration
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq<InfluxDbIntegration> for InfluxDbIntegration
impl PartialEq<InfluxDbIntegration> for InfluxDbIntegration
source§fn eq(&self, other: &InfluxDbIntegration) -> bool
fn eq(&self, other: &InfluxDbIntegration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InfluxDbIntegration
Auto Trait Implementations§
impl RefUnwindSafe for InfluxDbIntegration
impl Send for InfluxDbIntegration
impl Sync for InfluxDbIntegration
impl Unpin for InfluxDbIntegration
impl UnwindSafe for InfluxDbIntegration
Blanket Implementations§
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