Struct opentelemetry::sdk::instrumentation::InstrumentationLibrary
source · #[non_exhaustive]pub struct InstrumentationLibrary {
pub name: Cow<'static, str>,
pub version: Option<Cow<'static, str>>,
}
Expand description
InstrumentationLibrary contains information about instrumentation library.
See Instrumentation Libraries
for more information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Cow<'static, str>
instrumentation library name, cannot be empty
version: Option<Cow<'static, str>>
instrumentation library version, can be empty
Implementations§
Trait Implementations§
source§impl Clone for InstrumentationLibrary
impl Clone for InstrumentationLibrary
source§fn clone(&self) -> InstrumentationLibrary
fn clone(&self) -> InstrumentationLibrary
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 InstrumentationLibrary
impl Debug for InstrumentationLibrary
source§impl Default for InstrumentationLibrary
impl Default for InstrumentationLibrary
source§fn default() -> InstrumentationLibrary
fn default() -> InstrumentationLibrary
Returns the “default value” for a type. Read more
source§impl Hash for InstrumentationLibrary
impl Hash for InstrumentationLibrary
source§impl PartialEq for InstrumentationLibrary
impl PartialEq for InstrumentationLibrary
source§fn eq(&self, other: &InstrumentationLibrary) -> bool
fn eq(&self, other: &InstrumentationLibrary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InstrumentationLibrary
impl StructuralEq for InstrumentationLibrary
impl StructuralPartialEq for InstrumentationLibrary
Auto Trait Implementations§
impl RefUnwindSafe for InstrumentationLibrary
impl Send for InstrumentationLibrary
impl Sync for InstrumentationLibrary
impl Unpin for InstrumentationLibrary
impl UnwindSafe for InstrumentationLibrary
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