#[repr(i32)]pub enum ClientLibraryDestination {
Unspecified = 0,
Github = 10,
PackageManager = 20,
}The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
Expand description
To where should client libraries be published?
Variantsยง
Unspecified = 0
The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
Client libraries will neither be generated nor published to package managers.
Github = 10
The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
Generate the client library in a repo under github.com/googleapis, but donโt publish it to package managers.
PackageManager = 20
The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
Publish the library to package managers like nuget.org and npmjs.com.
Implementationsยง
Sourceยงimpl ClientLibraryDestination
impl ClientLibraryDestination
Sourcepub fn is_valid(value: i32) -> bool
๐Deprecated since 0.30.0: The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
pub fn is_valid(value: i32) -> bool
The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
Returns true if value is a variant of ClientLibraryDestination.
Sourcepub fn from_i32(value: i32) -> Option<ClientLibraryDestination>
๐Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ClientLibraryDestination>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ClientLibraryDestination, or None if value is not a valid variant.
Sourceยงimpl ClientLibraryDestination
impl ClientLibraryDestination
Sourcepub fn as_str_name(&self) -> &'static str
๐Deprecated since 0.30.0: The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
pub fn as_str_name(&self) -> &'static str
The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
๐Deprecated since 0.30.0: The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
pub fn from_str_name(value: &str) -> Option<Self>
The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementationsยง
Sourceยงimpl Clone for ClientLibraryDestination
impl Clone for ClientLibraryDestination
Sourceยงfn clone(&self) -> ClientLibraryDestination
fn clone(&self) -> ClientLibraryDestination
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ClientLibraryDestination
Sourceยงimpl Debug for ClientLibraryDestination
impl Debug for ClientLibraryDestination
Sourceยงimpl Default for ClientLibraryDestination
impl Default for ClientLibraryDestination
Sourceยงfn default() -> ClientLibraryDestination
fn default() -> ClientLibraryDestination
impl Eq for ClientLibraryDestination
Sourceยงimpl From<ClientLibraryDestination> for i32
impl From<ClientLibraryDestination> for i32
Sourceยงfn from(value: ClientLibraryDestination) -> i32
fn from(value: ClientLibraryDestination) -> i32
Sourceยงimpl Hash for ClientLibraryDestination
impl Hash for ClientLibraryDestination
Sourceยงimpl Ord for ClientLibraryDestination
impl Ord for ClientLibraryDestination
Sourceยงfn cmp(&self, other: &ClientLibraryDestination) -> Ordering
fn cmp(&self, other: &ClientLibraryDestination) -> Ordering
1.21.0 (const: unstable) ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl PartialOrd for ClientLibraryDestination
impl PartialOrd for ClientLibraryDestination
impl StructuralPartialEq for ClientLibraryDestination
Sourceยงimpl TryFrom<i32> for ClientLibraryDestination
impl TryFrom<i32> for ClientLibraryDestination
Sourceยงtype Error = UnknownEnumValue
type Error = UnknownEnumValue
Sourceยงfn try_from(value: i32) -> Result<ClientLibraryDestination, UnknownEnumValue>
fn try_from(value: i32) -> Result<ClientLibraryDestination, UnknownEnumValue>
Auto Trait Implementationsยง
impl Freeze for ClientLibraryDestination
impl RefUnwindSafe for ClientLibraryDestination
impl Send for ClientLibraryDestination
impl Sync for ClientLibraryDestination
impl Unpin for ClientLibraryDestination
impl UnsafeUnpin for ClientLibraryDestination
impl UnwindSafe for ClientLibraryDestination
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Sourceยงimpl<T> FutureExt for T
impl<T> FutureExt for T
Sourceยงfn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Sourceยงfn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
T in a tonic::Request