#[non_exhaustive]pub struct PushTelemetryRequest {
pub client_instance_id: Uuid,
pub subscription_id: i32,
pub terminating: bool,
pub compression_type: i8,
pub metrics: Bytes,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_instance_id: Uuid
Unique id for this client instance.
Supported API versions: 0
subscription_id: i32
Unique identifier for the current subscription.
Supported API versions: 0
terminating: bool
Client is terminating the connection.
Supported API versions: 0
compression_type: i8
Compression codec used to compress the metrics.
Supported API versions: 0
metrics: Bytes
Metrics encoded in OpenTelemetry MetricsData v1 protobuf format.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl PushTelemetryRequest
impl PushTelemetryRequest
Sourcepub fn with_client_instance_id(self, value: Uuid) -> Self
pub fn with_client_instance_id(self, value: Uuid) -> Self
Sets client_instance_id
to the passed value.
Unique id for this client instance.
Supported API versions: 0
Sourcepub fn with_subscription_id(self, value: i32) -> Self
pub fn with_subscription_id(self, value: i32) -> Self
Sets subscription_id
to the passed value.
Unique identifier for the current subscription.
Supported API versions: 0
Sourcepub fn with_terminating(self, value: bool) -> Self
pub fn with_terminating(self, value: bool) -> Self
Sets terminating
to the passed value.
Client is terminating the connection.
Supported API versions: 0
Sourcepub fn with_compression_type(self, value: i8) -> Self
pub fn with_compression_type(self, value: i8) -> Self
Sets compression_type
to the passed value.
Compression codec used to compress the metrics.
Supported API versions: 0
Sourcepub fn with_metrics(self, value: Bytes) -> Self
pub fn with_metrics(self, value: Bytes) -> Self
Sets metrics
to the passed value.
Metrics encoded in OpenTelemetry MetricsData v1 protobuf format.
Supported API versions: 0
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for PushTelemetryRequest
impl Clone for PushTelemetryRequest
Source§fn clone(&self) -> PushTelemetryRequest
fn clone(&self) -> PushTelemetryRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PushTelemetryRequest
impl Debug for PushTelemetryRequest
Source§impl Decodable for PushTelemetryRequest
Available on crate feature broker
only.
impl Decodable for PushTelemetryRequest
broker
only.Source§impl Default for PushTelemetryRequest
impl Default for PushTelemetryRequest
Source§impl Encodable for PushTelemetryRequest
Available on crate feature client
only.
impl Encodable for PushTelemetryRequest
client
only.Source§impl From<PushTelemetryRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<PushTelemetryRequest> for RequestKind
messages_enums
only.Source§fn from(value: PushTelemetryRequest) -> RequestKind
fn from(value: PushTelemetryRequest) -> RequestKind
Source§impl HeaderVersion for PushTelemetryRequest
impl HeaderVersion for PushTelemetryRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for PushTelemetryRequest
impl Message for PushTelemetryRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for PushTelemetryRequest
impl PartialEq for PushTelemetryRequest
Source§impl Request for PushTelemetryRequest
Available on crate features client
and broker
only.
impl Request for PushTelemetryRequest
client
and broker
only.