Struct opentelemetry::StringValue
source · pub struct StringValue(/* private fields */);
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 AnyValue
Available on crate feature logs
only.
impl From<StringValue> for AnyValue
Available on crate feature
logs
only.source§fn from(val: StringValue) -> AnyValue
fn from(val: StringValue) -> AnyValue
Converts to this type from the input type.
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 Ord for StringValue
impl Ord for StringValue
source§fn cmp(&self, other: &StringValue) -> Ordering
fn cmp(&self, other: &StringValue) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StringValue
impl PartialEq 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 ==
.source§impl PartialOrd for StringValue
impl PartialOrd for StringValue
source§fn partial_cmp(&self, other: &StringValue) -> Option<Ordering>
fn partial_cmp(&self, other: &StringValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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<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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> ⓘ
Available on crate feature
trace
only.source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.