pub struct KeyValuePair {
pub key: String,
pub value: Value,
}Fields§
§key: String§value: ValueImplementations§
Source§impl KeyValuePair
impl KeyValuePair
Trait Implementations§
Source§impl Clone for KeyValuePair
impl Clone for KeyValuePair
Source§fn clone(&self) -> KeyValuePair
fn clone(&self) -> KeyValuePair
Returns a duplicate 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 KeyValuePair
impl Debug for KeyValuePair
Source§impl<'de> Deserialize<'de> for KeyValuePair
impl<'de> Deserialize<'de> for KeyValuePair
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyValuePair, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyValuePair, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KeyValuePair
impl Display for KeyValuePair
Source§impl<S> From<(&str, S)> for KeyValuePairwhere
S: Serialize,
impl<S> From<(&str, S)> for KeyValuePairwhere
S: Serialize,
Source§fn from(_: (&str, S)) -> KeyValuePair
fn from(_: (&str, S)) -> KeyValuePair
Converts to this type from the input type.
Source§impl<S> From<(String, S)> for KeyValuePairwhere
S: Serialize,
impl<S> From<(String, S)> for KeyValuePairwhere
S: Serialize,
Source§fn from(_: (String, S)) -> KeyValuePair
fn from(_: (String, S)) -> KeyValuePair
Converts to this type from the input type.
Source§impl From<KeyValuePair> for Value
impl From<KeyValuePair> for Value
Source§fn from(kvp: KeyValuePair) -> Value
fn from(kvp: KeyValuePair) -> Value
Converts to this type from the input type.
Source§impl PartialEq for KeyValuePair
impl PartialEq for KeyValuePair
Source§impl Serialize for KeyValuePair
impl Serialize for KeyValuePair
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> TryFrom<KeyValuePair> for TypedKeyValuePair<T>where
T: DeserializeOwned,
impl<T> TryFrom<KeyValuePair> for TypedKeyValuePair<T>where
T: DeserializeOwned,
Source§fn try_from(
kvp: KeyValuePair,
) -> Result<TypedKeyValuePair<T>, <TypedKeyValuePair<T> as TryFrom<KeyValuePair>>::Error>
fn try_from( kvp: KeyValuePair, ) -> Result<TypedKeyValuePair<T>, <TypedKeyValuePair<T> as TryFrom<KeyValuePair>>::Error>
Performs the conversion.
impl Eq for KeyValuePair
impl StructuralPartialEq for KeyValuePair
Auto Trait Implementations§
impl Freeze for KeyValuePair
impl RefUnwindSafe for KeyValuePair
impl Send for KeyValuePair
impl Sync for KeyValuePair
impl Unpin for KeyValuePair
impl UnwindSafe for KeyValuePair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
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>
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.