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
sourcefn clone(&self) -> ConstValue
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
sourcefn default() -> ConstValue
fn default() -> ConstValue
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ConstValue
impl<'de> Deserialize<'de> for ConstValue
sourcefn deserialize<D>(
deserializer: D
) -> Result<ConstValue, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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
sourcefn deserialize_any<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_bool<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_i8<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_i16<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_i32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_i64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_i128<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_u8<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_u16<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_u32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_u64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_u128<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_f32<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_f64<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_char<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_str<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_string<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_bytes<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_byte_buf<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_unit<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn 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>,
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
sourcefn deserialize_seq<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn deserialize_tuple<V>(
self,
len: usize,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn 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>,
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
sourcefn deserialize_map<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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.
sourcefn 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>,
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
sourcefn deserialize_identifier<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_ignored_any<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn deserialize_option<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, <ConstValue as Deserializer<'de>>::Error>where
V: Visitor<'de>,
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
sourcefn 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>,
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
sourcefn 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>,
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
sourcefn is_human_readable(&self) -> bool
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 ConstValuewhere
T: Clone + Into<ConstValue>,
impl<'a, T> From<&'a [T]> for ConstValuewhere
T: Clone + Into<ConstValue>,
sourcefn from(f: &'a [T]) -> ConstValue
fn from(f: &'a [T]) -> ConstValue
Converts to this type from the input type.
sourceimpl<'a> From<&'a str> for ConstValue
impl<'a> From<&'a str> for ConstValue
sourcefn from(value: &'a str) -> ConstValue
fn from(value: &'a str) -> ConstValue
Converts to this type from the input type.
sourceimpl From<()> for ConstValue
impl From<()> for ConstValue
sourcefn from(()) -> ConstValue
fn from(()) -> ConstValue
Converts to this type from the input type.
sourceimpl<'a> From<Cow<'a, str>> for ConstValue
impl<'a> From<Cow<'a, str>> for ConstValue
sourcefn from(f: Cow<'a, str>) -> ConstValue
fn from(f: Cow<'a, str>) -> ConstValue
Converts to this type from the input type.
sourceimpl From<IndexMap<Name, ConstValue, RandomState>> for ConstValue
impl From<IndexMap<Name, ConstValue, RandomState>> for ConstValue
sourcefn from(f: IndexMap<Name, ConstValue, RandomState>) -> ConstValue
fn from(f: IndexMap<Name, ConstValue, RandomState>) -> ConstValue
Converts to this type from the input type.
sourceimpl From<String> for ConstValue
impl From<String> for ConstValue
sourcefn from(value: String) -> ConstValue
fn from(value: String) -> ConstValue
Converts to this type from the input type.
sourceimpl From<Variables> for ConstValue
impl From<Variables> for ConstValue
sourcefn from(variables: Variables) -> ConstValue
fn from(variables: Variables) -> ConstValue
Converts to this type from the input type.
sourceimpl<T> From<Vec<T, Global>> for ConstValuewhere
T: Into<ConstValue>,
impl<T> From<Vec<T, Global>> for ConstValuewhere
T: Into<ConstValue>,
sourcefn from(f: Vec<T, Global>) -> ConstValue
fn from(f: Vec<T, Global>) -> ConstValue
Converts to this type from the input type.
sourceimpl From<bool> for ConstValue
impl From<bool> for ConstValue
sourcefn from(value: bool) -> ConstValue
fn from(value: bool) -> ConstValue
Converts to this type from the input type.
sourceimpl From<f32> for ConstValue
impl From<f32> for ConstValue
sourcefn from(f: f32) -> ConstValue
fn from(f: f32) -> ConstValue
Converts to this type from the input type.
sourceimpl From<f64> for ConstValue
impl From<f64> for ConstValue
sourcefn from(f: f64) -> ConstValue
fn from(f: f64) -> ConstValue
Converts to this type from the input type.
sourceimpl From<i16> for ConstValue
impl From<i16> for ConstValue
sourcefn from(n: i16) -> ConstValue
fn from(n: i16) -> ConstValue
Converts to this type from the input type.
sourceimpl From<i32> for ConstValue
impl From<i32> for ConstValue
sourcefn from(n: i32) -> ConstValue
fn from(n: i32) -> ConstValue
Converts to this type from the input type.
sourceimpl From<i64> for ConstValue
impl From<i64> for ConstValue
sourcefn from(n: i64) -> ConstValue
fn from(n: i64) -> ConstValue
Converts to this type from the input type.
sourceimpl From<i8> for ConstValue
impl From<i8> for ConstValue
sourcefn from(n: i8) -> ConstValue
fn from(n: i8) -> ConstValue
Converts to this type from the input type.
sourceimpl From<isize> for ConstValue
impl From<isize> for ConstValue
sourcefn from(n: isize) -> ConstValue
fn from(n: isize) -> ConstValue
Converts to this type from the input type.
sourceimpl From<u16> for ConstValue
impl From<u16> for ConstValue
sourcefn from(n: u16) -> ConstValue
fn from(n: u16) -> ConstValue
Converts to this type from the input type.
sourceimpl From<u32> for ConstValue
impl From<u32> for ConstValue
sourcefn from(n: u32) -> ConstValue
fn from(n: u32) -> ConstValue
Converts to this type from the input type.
sourceimpl From<u64> for ConstValue
impl From<u64> for ConstValue
sourcefn from(n: u64) -> ConstValue
fn from(n: u64) -> ConstValue
Converts to this type from the input type.
sourceimpl From<u8> for ConstValue
impl From<u8> for ConstValue
sourcefn from(n: u8) -> ConstValue
fn from(n: u8) -> ConstValue
Converts to this type from the input type.
sourceimpl From<usize> for ConstValue
impl From<usize> for ConstValue
sourcefn from(n: usize) -> ConstValue
fn from(n: usize) -> ConstValue
Converts to this type from the input type.
sourceimpl<T> FromIterator<T> for ConstValuewhere
T: Into<ConstValue>,
impl<T> FromIterator<T> for ConstValuewhere
T: Into<ConstValue>,
sourcefn from_iter<I>(iter: I) -> ConstValuewhere
I: IntoIterator<Item = T>,
fn from_iter<I>(iter: I) -> ConstValuewhere
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.
sourcefn into_deserializer(
self
) -> <ConstValue as IntoDeserializer<'de, DeserializerError>>::Deserializer
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
sourcefn eq(&self, other: &ConstValue) -> bool
fn eq(&self, other: &ConstValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ConstValue
impl Serialize for ConstValue
sourcefn 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
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>
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>
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>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
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