Struct opentelemetry_api::StringValue
source · pub struct StringValue(_);
Expand description
Wrapper for string-like values
Implementations§
Trait Implementations§
source§impl AsRef<str> for StringValue
impl AsRef<str> for StringValue
source§impl Clone for StringValue
impl Clone for StringValue
source§fn clone(&self) -> StringValue
fn clone(&self) -> StringValue
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 StringValue
impl Debug for StringValue
source§impl Display for StringValue
impl Display for StringValue
source§impl From<&'static str> for StringValue
impl From<&'static str> for StringValue
source§impl From<String> for StringValue
impl From<String> for StringValue
source§impl From<StringValue> for String
impl From<StringValue> for String
source§fn from(s: StringValue) -> Self
fn from(s: StringValue) -> Self
Converts to this type from the input type.
source§impl From<StringValue> for Value
impl From<StringValue> for Value
source§fn from(t: StringValue) -> Self
fn from(t: StringValue) -> Self
Converts to this type from the input type.
source§impl Hash for StringValue
impl Hash for StringValue
source§impl PartialEq<StringValue> for StringValue
impl PartialEq<StringValue> for StringValue
source§fn eq(&self, other: &StringValue) -> bool
fn eq(&self, other: &StringValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StringValue
impl StructuralEq for StringValue
impl StructuralPartialEq for StringValue
Auto Trait Implementations§
impl RefUnwindSafe for StringValue
impl Send for StringValue
impl Sync for StringValue
impl Unpin for StringValue
impl UnwindSafe for StringValue
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.