Enum async_graphql::Value
source · [−]pub enum Value {
Null,
Number(Number),
String(String),
Boolean(bool),
Binary(Bytes),
Enum(Name),
List(Vec<ConstValue, Global>),
Object(IndexMap<Name, ConstValue, RandomState>),
}
Expand description
A resolved GraphQL value, for example 1
or "Hello World!"
.
It can be serialized and deserialized. Enums will be converted to strings. Attempting to
serialize Upload
will fail, and Enum
and Upload
cannot be deserialized.
Variants
Null
null
.
Number(Number)
A number.
String(String)
A string.
Boolean(bool)
A boolean.
Binary(Bytes)
A binary.
Enum(Name)
An enum. These are typically in SCREAMING_SNAKE_CASE
.
List(Vec<ConstValue, Global>)
A list of values.
Object(IndexMap<Name, ConstValue, RandomState>)
An object. This is a map of keys to values.
Implementations
sourceimpl ConstValue
impl ConstValue
Trait Implementations
sourceimpl Clone for ConstValue
impl Clone for ConstValue
sourcepub fn clone(&self) -> ConstValue
pub fn clone(&self) -> ConstValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConstValue
impl Debug for ConstValue
sourceimpl Default for ConstValue
impl Default for ConstValue
sourcepub fn default() -> ConstValue
pub fn default() -> ConstValue
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ConstValue
impl<'de> Deserialize<'de> for ConstValue
sourcepub fn deserialize<D>(
deserializer: D
) -> Result<ConstValue, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<ConstValue, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'de> Deserializer<'de> for ConstValue
impl<'de> Deserializer<'de> for ConstValue
type Error = DeserializerError
type Error = DeserializerError
The error type that can be returned if some error occurs during deserialization. Read more
sourcepub fn deserialize_any<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_any<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Require the Deserializer
to figure out how to drive the visitor based
on what data type is in the input. Read more
sourcepub fn deserialize_bool<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_bool<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a bool
value.
sourcepub fn deserialize_i8<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_i8<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an i8
value.
sourcepub fn deserialize_i16<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_i16<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an i16
value.
sourcepub fn deserialize_i32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_i32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an i32
value.
sourcepub fn deserialize_i64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_i64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an i64
value.
sourcepub fn deserialize_i128<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_i128<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an i128
value. Read more
sourcepub fn deserialize_u8<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_u8<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a u8
value.
sourcepub fn deserialize_u16<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_u16<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a u16
value.
sourcepub fn deserialize_u32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_u32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a u32
value.
sourcepub fn deserialize_u64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_u64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a u64
value.
sourcepub fn deserialize_u128<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_u128<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an u128
value. Read more
sourcepub fn deserialize_f32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_f32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a f32
value.
sourcepub fn deserialize_f64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_f64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a f64
value.
sourcepub fn deserialize_char<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_char<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a char
value.
sourcepub fn deserialize_str<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_str<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a string value and does
not benefit from taking ownership of buffered data owned by the
Deserializer
. Read more
sourcepub fn deserialize_string<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_string<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a string value and would
benefit from taking ownership of buffered data owned by the
Deserializer
. Read more
sourcepub fn deserialize_bytes<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_bytes<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a byte array and does not
benefit from taking ownership of buffered data owned by the
Deserializer
. Read more
sourcepub fn deserialize_byte_buf<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_byte_buf<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a byte array and would
benefit from taking ownership of buffered data owned by the
Deserializer
. Read more
sourcepub fn deserialize_unit<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_unit<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a unit value.
sourcepub fn deserialize_unit_struct<V>(
self,
name: &'static str,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_unit_struct<V>(
self,
name: &'static str,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a unit struct with a
particular name. Read more
sourcepub fn deserialize_seq<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_seq<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a sequence of values.
sourcepub fn deserialize_tuple<V>(
self,
len: usize,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_tuple<V>(
self,
len: usize,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a sequence of values and
knows how many values there are without looking at the serialized data. Read more
sourcepub fn deserialize_tuple_struct<V>(
self,
name: &'static str,
len: usize,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_tuple_struct<V>(
self,
name: &'static str,
len: usize,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a tuple struct with a
particular name and number of fields. Read more
sourcepub fn deserialize_map<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_map<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a map of key-value pairs.
sourcepub fn deserialize_struct<V>(
self,
name: &'static str,
fields: &'static [&'static str],
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_struct<V>(
self,
name: &'static str,
fields: &'static [&'static str],
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a struct with a particular
name and fields. Read more
sourcepub fn deserialize_identifier<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_identifier<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting the name of a struct
field or the discriminant of an enum variant. Read more
sourcepub fn deserialize_ignored_any<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_ignored_any<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type needs to deserialize a value whose type
doesn’t matter because it is ignored. Read more
sourcepub fn deserialize_option<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_option<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an optional value. Read more
sourcepub fn deserialize_newtype_struct<V>(
self,
_name: &'static str,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_newtype_struct<V>(
self,
_name: &'static str,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting a newtype struct with a
particular name. Read more
sourcepub fn deserialize_enum<V>(
self,
_name: &'static str,
_variants: &'static [&'static str],
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
pub fn deserialize_enum<V>(
self,
_name: &'static str,
_variants: &'static [&'static str],
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an enum value with a
particular name and possible variants. Read more
sourcepub fn is_human_readable(&self) -> bool
pub fn is_human_readable(&self) -> bool
Determine whether Deserialize
implementations should expect to
deserialize their human-readable form. Read more
sourceimpl Display for ConstValue
impl Display for ConstValue
sourceimpl<'a, T> From<&'a [T]> for ConstValue where
T: Clone + Into<ConstValue>,
impl<'a, T> From<&'a [T]> for ConstValue where
T: Clone + Into<ConstValue>,
sourcepub fn from(f: &'a [T]) -> ConstValue
pub fn from(f: &'a [T]) -> ConstValue
Performs the conversion.
sourceimpl<'a> From<&'a str> for ConstValue
impl<'a> From<&'a str> for ConstValue
sourcepub fn from(value: &'a str) -> ConstValue
pub fn from(value: &'a str) -> ConstValue
Performs the conversion.
sourceimpl From<()> for ConstValue
impl From<()> for ConstValue
sourcepub fn from(()) -> ConstValue
pub fn from(()) -> ConstValue
Performs the conversion.
sourceimpl<'a> From<Cow<'a, str>> for ConstValue
impl<'a> From<Cow<'a, str>> for ConstValue
sourcepub fn from(f: Cow<'a, str>) -> ConstValue
pub fn from(f: Cow<'a, str>) -> ConstValue
Performs the conversion.
sourceimpl From<IndexMap<Name, ConstValue, RandomState>> for ConstValue
impl From<IndexMap<Name, ConstValue, RandomState>> for ConstValue
sourcepub fn from(f: IndexMap<Name, ConstValue, RandomState>) -> ConstValue
pub fn from(f: IndexMap<Name, ConstValue, RandomState>) -> ConstValue
Performs the conversion.
sourceimpl From<String> for ConstValue
impl From<String> for ConstValue
sourcepub fn from(value: String) -> ConstValue
pub fn from(value: String) -> ConstValue
Performs the conversion.
sourceimpl From<Variables> for ConstValue
impl From<Variables> for ConstValue
sourcepub fn from(variables: Variables) -> ConstValue
pub fn from(variables: Variables) -> ConstValue
Performs the conversion.
sourceimpl<T> From<Vec<T, Global>> for ConstValue where
T: Into<ConstValue>,
impl<T> From<Vec<T, Global>> for ConstValue where
T: Into<ConstValue>,
sourcepub fn from(f: Vec<T, Global>) -> ConstValue
pub fn from(f: Vec<T, Global>) -> ConstValue
Performs the conversion.
sourceimpl From<bool> for ConstValue
impl From<bool> for ConstValue
sourcepub fn from(value: bool) -> ConstValue
pub fn from(value: bool) -> ConstValue
Performs the conversion.
sourceimpl From<f32> for ConstValue
impl From<f32> for ConstValue
sourcepub fn from(f: f32) -> ConstValue
pub fn from(f: f32) -> ConstValue
Performs the conversion.
sourceimpl From<f64> for ConstValue
impl From<f64> for ConstValue
sourcepub fn from(f: f64) -> ConstValue
pub fn from(f: f64) -> ConstValue
Performs the conversion.
sourceimpl From<i16> for ConstValue
impl From<i16> for ConstValue
sourcepub fn from(n: i16) -> ConstValue
pub fn from(n: i16) -> ConstValue
Performs the conversion.
sourceimpl From<i32> for ConstValue
impl From<i32> for ConstValue
sourcepub fn from(n: i32) -> ConstValue
pub fn from(n: i32) -> ConstValue
Performs the conversion.
sourceimpl From<i64> for ConstValue
impl From<i64> for ConstValue
sourcepub fn from(n: i64) -> ConstValue
pub fn from(n: i64) -> ConstValue
Performs the conversion.
sourceimpl From<i8> for ConstValue
impl From<i8> for ConstValue
sourcepub fn from(n: i8) -> ConstValue
pub fn from(n: i8) -> ConstValue
Performs the conversion.
sourceimpl From<isize> for ConstValue
impl From<isize> for ConstValue
sourcepub fn from(n: isize) -> ConstValue
pub fn from(n: isize) -> ConstValue
Performs the conversion.
sourceimpl From<u16> for ConstValue
impl From<u16> for ConstValue
sourcepub fn from(n: u16) -> ConstValue
pub fn from(n: u16) -> ConstValue
Performs the conversion.
sourceimpl From<u32> for ConstValue
impl From<u32> for ConstValue
sourcepub fn from(n: u32) -> ConstValue
pub fn from(n: u32) -> ConstValue
Performs the conversion.
sourceimpl From<u64> for ConstValue
impl From<u64> for ConstValue
sourcepub fn from(n: u64) -> ConstValue
pub fn from(n: u64) -> ConstValue
Performs the conversion.
sourceimpl From<u8> for ConstValue
impl From<u8> for ConstValue
sourcepub fn from(n: u8) -> ConstValue
pub fn from(n: u8) -> ConstValue
Performs the conversion.
sourceimpl From<usize> for ConstValue
impl From<usize> for ConstValue
sourcepub fn from(n: usize) -> ConstValue
pub fn from(n: usize) -> ConstValue
Performs the conversion.
sourceimpl<T> FromIterator<T> for ConstValue where
T: Into<ConstValue>,
impl<T> FromIterator<T> for ConstValue where
T: Into<ConstValue>,
sourcepub fn from_iter<I>(iter: I) -> ConstValue where
I: IntoIterator<Item = T>,
pub fn from_iter<I>(iter: I) -> ConstValue where
I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
sourceimpl<'de> IntoDeserializer<'de, DeserializerError> for ConstValue
impl<'de> IntoDeserializer<'de, DeserializerError> for ConstValue
type Deserializer = ConstValue
type Deserializer = ConstValue
The type of the deserializer being converted into.
sourcepub fn into_deserializer(
self
) -> <ConstValue as IntoDeserializer<'de, DeserializerError>>::Deserializer
pub fn into_deserializer(
self
) -> <ConstValue as IntoDeserializer<'de, DeserializerError>>::Deserializer
Convert this value into a deserializer.
sourceimpl PartialEq<ConstValue> for ConstValue
impl PartialEq<ConstValue> for ConstValue
sourceimpl Serialize for ConstValue
impl Serialize for ConstValue
sourcepub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub 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
sourceimpl TryFrom<Value> for ConstValue
impl TryFrom<Value> for ConstValue
impl Eq for ConstValue
impl StructuralEq for ConstValue
Auto Trait Implementations
impl RefUnwindSafe for ConstValue
impl Send for ConstValue
impl Sync for ConstValue
impl Unpin for ConstValue
impl UnwindSafe for ConstValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more