pub enum Value {
Show 30 variants
Bool(bool),
U8(u8),
I8(i8),
U16(u16),
I16(i16),
U32(u32),
I32(i32),
U64(u64),
I64(i64),
F32(f32),
F64(f64),
Date(Date),
DateWithoutTimezone(DateWithoutTimezone),
Time(Time),
TimeWithoutTimezone(TimeWithoutTimezone),
DateTime(DateTime),
DateTimeWithoutTimezone(DateTimeWithoutTimezone),
Timezone(Timezone),
Decimal(Decimal),
Bson(Bson),
String(String),
Json(Json),
Enum(Enum),
Url(Url),
Webpage(Webpage<'static>),
IpAddr(IpAddr),
List(List<Value>),
Map(HashMap<Value, Value>),
Group(Group),
Option(Option<ValueRequired>),
}Expand description
Represents any valid Amadeus value.
Variants§
Bool(bool)
Boolean value (true, false).
U8(u8)
Signed integer INT_8.
I8(i8)
Signed integer INT_16.
U16(u16)
Signed integer INT_32.
I16(i16)
Signed integer INT_64.
U32(u32)
Unsigned integer UINT_8.
I32(i32)
Unsigned integer UINT_16.
U64(u64)
Unsigned integer UINT_32.
I64(i64)
Unsigned integer UINT_64.
F32(f32)
IEEE 32-bit floating point value.
F64(f64)
IEEE 64-bit floating point value.
Date(Date)
Date without a time of day, stores the number of days from the Unix epoch, 1 January 1970.
DateWithoutTimezone(DateWithoutTimezone)
Date without a time of day, stores the number of days from the Unix epoch, 1 January 1970.
Time(Time)
Time of day, stores the number of microseconds from midnight.
TimeWithoutTimezone(TimeWithoutTimezone)
Time of day, stores the number of microseconds from midnight.
DateTime(DateTime)
Milliseconds from the Unix epoch, 1 January 1970.
DateTimeWithoutTimezone(DateTimeWithoutTimezone)
Milliseconds from the Unix epoch, 1 January 1970.
Timezone(Timezone)
Timezone.
Decimal(Decimal)
Decimal value.
Bson(Bson)
BSON binary value.
String(String)
UTF-8 encoded character string.
Json(Json)
JSON string.
Enum(Enum)
Enum string.
Url(Url)
URL
Webpage(Webpage<'static>)
Webpage
IpAddr(IpAddr)
Ip Address
List(List<Value>)
List of elements.
Map(HashMap<Value, Value>)
Map of key-value pairs.
Group(Group)
Struct, child elements are tuples of field-value pairs.
Option(Option<ValueRequired>)
Optional element.
Implementations§
Source§impl Value
impl Value
Sourcepub fn as_bool(&self) -> Result<bool, DowncastError>
pub fn as_bool(&self) -> Result<bool, DowncastError>
If the Value is an Bool, return a reference to it. Returns Err otherwise.
Sourcepub fn into_bool(self) -> Result<bool, DowncastError>
pub fn into_bool(self) -> Result<bool, DowncastError>
If the Value is an Bool, return it. Returns Err otherwise.
Sourcepub fn as_u8(&self) -> Result<u8, DowncastError>
pub fn as_u8(&self) -> Result<u8, DowncastError>
If the Value is an U8, return a reference to it. Returns Err otherwise.
Sourcepub fn into_u8(self) -> Result<u8, DowncastError>
pub fn into_u8(self) -> Result<u8, DowncastError>
If the Value is an U8, return it. Returns Err otherwise.
Sourcepub fn as_i8(&self) -> Result<i8, DowncastError>
pub fn as_i8(&self) -> Result<i8, DowncastError>
If the Value is an I8, return a reference to it. Returns Err otherwise.
Sourcepub fn into_i8(self) -> Result<i8, DowncastError>
pub fn into_i8(self) -> Result<i8, DowncastError>
If the Value is an I8, return it. Returns Err otherwise.
Sourcepub fn as_u16(&self) -> Result<u16, DowncastError>
pub fn as_u16(&self) -> Result<u16, DowncastError>
If the Value is an U16, return a reference to it. Returns Err otherwise.
Sourcepub fn into_u16(self) -> Result<u16, DowncastError>
pub fn into_u16(self) -> Result<u16, DowncastError>
If the Value is an U16, return it. Returns Err otherwise.
Sourcepub fn as_i16(&self) -> Result<i16, DowncastError>
pub fn as_i16(&self) -> Result<i16, DowncastError>
If the Value is an I16, return a reference to it. Returns Err otherwise.
Sourcepub fn into_i16(self) -> Result<i16, DowncastError>
pub fn into_i16(self) -> Result<i16, DowncastError>
If the Value is an I16, return it. Returns Err otherwise.
Sourcepub fn as_u32(&self) -> Result<u32, DowncastError>
pub fn as_u32(&self) -> Result<u32, DowncastError>
If the Value is an U32, return a reference to it. Returns Err otherwise.
Sourcepub fn into_u32(self) -> Result<u32, DowncastError>
pub fn into_u32(self) -> Result<u32, DowncastError>
If the Value is an U32, return it. Returns Err otherwise.
Sourcepub fn as_i32(&self) -> Result<i32, DowncastError>
pub fn as_i32(&self) -> Result<i32, DowncastError>
If the Value is an I32, return a reference to it. Returns Err otherwise.
Sourcepub fn into_i32(self) -> Result<i32, DowncastError>
pub fn into_i32(self) -> Result<i32, DowncastError>
If the Value is an I32, return it. Returns Err otherwise.
Sourcepub fn as_u64(&self) -> Result<u64, DowncastError>
pub fn as_u64(&self) -> Result<u64, DowncastError>
If the Value is an U64, return a reference to it. Returns Err otherwise.
Sourcepub fn into_u64(self) -> Result<u64, DowncastError>
pub fn into_u64(self) -> Result<u64, DowncastError>
If the Value is an U64, return it. Returns Err otherwise.
Sourcepub fn as_i64(&self) -> Result<i64, DowncastError>
pub fn as_i64(&self) -> Result<i64, DowncastError>
If the Value is an I64, return a reference to it. Returns Err otherwise.
Sourcepub fn into_i64(self) -> Result<i64, DowncastError>
pub fn into_i64(self) -> Result<i64, DowncastError>
If the Value is an I64, return it. Returns Err otherwise.
Sourcepub fn as_f32(&self) -> Result<f32, DowncastError>
pub fn as_f32(&self) -> Result<f32, DowncastError>
If the Value is an F32, return a reference to it. Returns Err otherwise.
Sourcepub fn into_f32(self) -> Result<f32, DowncastError>
pub fn into_f32(self) -> Result<f32, DowncastError>
If the Value is an F32, return it. Returns Err otherwise.
Sourcepub fn as_f64(&self) -> Result<f64, DowncastError>
pub fn as_f64(&self) -> Result<f64, DowncastError>
If the Value is an F64, return a reference to it. Returns Err otherwise.
Sourcepub fn into_f64(self) -> Result<f64, DowncastError>
pub fn into_f64(self) -> Result<f64, DowncastError>
If the Value is an F64, return it. Returns Err otherwise.
Sourcepub fn as_date(&self) -> Result<&Date, DowncastError>
pub fn as_date(&self) -> Result<&Date, DowncastError>
If the Value is an Date, return a reference to it. Returns Err otherwise.
Sourcepub fn into_date(self) -> Result<Date, DowncastError>
pub fn into_date(self) -> Result<Date, DowncastError>
If the Value is an Date, return it. Returns Err otherwise.
Sourcepub fn is_date_without_timezone(&self) -> bool
pub fn is_date_without_timezone(&self) -> bool
Returns true if the Value is an DateWithoutTimezone. Returns false otherwise.
Sourcepub fn as_date_without_timezone(
&self,
) -> Result<&DateWithoutTimezone, DowncastError>
pub fn as_date_without_timezone( &self, ) -> Result<&DateWithoutTimezone, DowncastError>
If the Value is an DateWithoutTimezone, return a reference to it. Returns Err otherwise.
Sourcepub fn into_date_without_timezone(
self,
) -> Result<DateWithoutTimezone, DowncastError>
pub fn into_date_without_timezone( self, ) -> Result<DateWithoutTimezone, DowncastError>
If the Value is an DateWithoutTimezone, return it. Returns Err otherwise.
Sourcepub fn as_time(&self) -> Result<&Time, DowncastError>
pub fn as_time(&self) -> Result<&Time, DowncastError>
If the Value is an Time, return a reference to it. Returns Err otherwise.
Sourcepub fn into_time(self) -> Result<Time, DowncastError>
pub fn into_time(self) -> Result<Time, DowncastError>
If the Value is an Time, return it. Returns Err otherwise.
Sourcepub fn is_time_without_timezone(&self) -> bool
pub fn is_time_without_timezone(&self) -> bool
Returns true if the Value is an TimeWithoutTimezone. Returns false otherwise.
Sourcepub fn as_time_without_timezone(
&self,
) -> Result<&TimeWithoutTimezone, DowncastError>
pub fn as_time_without_timezone( &self, ) -> Result<&TimeWithoutTimezone, DowncastError>
If the Value is an TimeWithoutTimezone, return a reference to it. Returns Err otherwise.
Sourcepub fn into_time_without_timezone(
self,
) -> Result<TimeWithoutTimezone, DowncastError>
pub fn into_time_without_timezone( self, ) -> Result<TimeWithoutTimezone, DowncastError>
If the Value is an TimeWithoutTimezone, return it. Returns Err otherwise.
Sourcepub fn is_date_time(&self) -> bool
pub fn is_date_time(&self) -> bool
Returns true if the Value is an DateTime. Returns false otherwise.
Sourcepub fn as_date_time(&self) -> Result<&DateTime, DowncastError>
pub fn as_date_time(&self) -> Result<&DateTime, DowncastError>
If the Value is an DateTime, return a reference to it. Returns Err otherwise.
Sourcepub fn into_date_time(self) -> Result<DateTime, DowncastError>
pub fn into_date_time(self) -> Result<DateTime, DowncastError>
If the Value is an DateTime, return it. Returns Err otherwise.
Sourcepub fn is_date_time_without_timezone(&self) -> bool
pub fn is_date_time_without_timezone(&self) -> bool
Returns true if the Value is an DateTimeWithoutTimezone. Returns false otherwise.
Sourcepub fn as_date_time_without_timezone(
&self,
) -> Result<&DateTimeWithoutTimezone, DowncastError>
pub fn as_date_time_without_timezone( &self, ) -> Result<&DateTimeWithoutTimezone, DowncastError>
If the Value is an DateTimeWithoutTimezone, return a reference to it. Returns Err otherwise.
Sourcepub fn into_date_time_without_timezone(
self,
) -> Result<DateTimeWithoutTimezone, DowncastError>
pub fn into_date_time_without_timezone( self, ) -> Result<DateTimeWithoutTimezone, DowncastError>
If the Value is an DateTimeWithoutTimezone, return it. Returns Err otherwise.
Sourcepub fn is_timezone(&self) -> bool
pub fn is_timezone(&self) -> bool
Returns true if the Value is an Timezone. Returns false otherwise.
Sourcepub fn as_timezone(&self) -> Result<&Timezone, DowncastError>
pub fn as_timezone(&self) -> Result<&Timezone, DowncastError>
If the Value is an Timezone, return a reference to it. Returns Err otherwise.
Sourcepub fn into_timezone(self) -> Result<Timezone, DowncastError>
pub fn into_timezone(self) -> Result<Timezone, DowncastError>
If the Value is an Timezone, return it. Returns Err otherwise.
Sourcepub fn is_decimal(&self) -> bool
pub fn is_decimal(&self) -> bool
Returns true if the Value is an Decimal. Returns false otherwise.
Sourcepub fn as_decimal(&self) -> Result<&Decimal, DowncastError>
pub fn as_decimal(&self) -> Result<&Decimal, DowncastError>
If the Value is an Decimal, return a reference to it. Returns Err otherwise.
Sourcepub fn into_decimal(self) -> Result<Decimal, DowncastError>
pub fn into_decimal(self) -> Result<Decimal, DowncastError>
If the Value is an Decimal, return it. Returns Err otherwise.
Sourcepub fn as_bson(&self) -> Result<&Bson, DowncastError>
pub fn as_bson(&self) -> Result<&Bson, DowncastError>
If the Value is an Bson, return a reference to it. Returns Err otherwise.
Sourcepub fn into_bson(self) -> Result<Bson, DowncastError>
pub fn into_bson(self) -> Result<Bson, DowncastError>
If the Value is an Bson, return it. Returns Err otherwise.
Sourcepub fn is_string(&self) -> bool
pub fn is_string(&self) -> bool
Returns true if the Value is an String. Returns false otherwise.
Sourcepub fn as_string(&self) -> Result<&String, DowncastError>
pub fn as_string(&self) -> Result<&String, DowncastError>
If the Value is an String, return a reference to it. Returns Err otherwise.
Sourcepub fn into_string(self) -> Result<String, DowncastError>
pub fn into_string(self) -> Result<String, DowncastError>
If the Value is an String, return it. Returns Err otherwise.
Sourcepub fn as_json(&self) -> Result<&Json, DowncastError>
pub fn as_json(&self) -> Result<&Json, DowncastError>
If the Value is an Json, return a reference to it. Returns Err otherwise.
Sourcepub fn into_json(self) -> Result<Json, DowncastError>
pub fn into_json(self) -> Result<Json, DowncastError>
If the Value is an Json, return it. Returns Err otherwise.
Sourcepub fn as_enum(&self) -> Result<&Enum, DowncastError>
pub fn as_enum(&self) -> Result<&Enum, DowncastError>
If the Value is an Enum, return a reference to it. Returns Err otherwise.
Sourcepub fn into_enum(self) -> Result<Enum, DowncastError>
pub fn into_enum(self) -> Result<Enum, DowncastError>
If the Value is an Enum, return it. Returns Err otherwise.
Sourcepub fn as_url(&self) -> Result<&Url, DowncastError>
pub fn as_url(&self) -> Result<&Url, DowncastError>
If the Value is an Url, return a reference to it. Returns Err otherwise.
Sourcepub fn into_url(self) -> Result<Url, DowncastError>
pub fn into_url(self) -> Result<Url, DowncastError>
If the Value is an Url, return it. Returns Err otherwise.
Sourcepub fn is_webpage(&self) -> bool
pub fn is_webpage(&self) -> bool
Returns true if the Value is an Webpage. Returns false otherwise.
Sourcepub fn as_webpage(&self) -> Result<&Webpage<'_>, DowncastError>
pub fn as_webpage(&self) -> Result<&Webpage<'_>, DowncastError>
If the Value is an Webpage, return a reference to it. Returns Err otherwise.
Sourcepub fn into_webpage(self) -> Result<Webpage<'static>, DowncastError>
pub fn into_webpage(self) -> Result<Webpage<'static>, DowncastError>
If the Value is an Webpage, return it. Returns Err otherwise.
Sourcepub fn is_ip_addr(&self) -> bool
pub fn is_ip_addr(&self) -> bool
Returns true if the Value is an IpAddr. Returns false otherwise.
Sourcepub fn as_ip_addr(&self) -> Result<&IpAddr, DowncastError>
pub fn as_ip_addr(&self) -> Result<&IpAddr, DowncastError>
If the Value is an IpAddr, return a reference to it. Returns Err otherwise.
Sourcepub fn into_ip_addr(self) -> Result<IpAddr, DowncastError>
pub fn into_ip_addr(self) -> Result<IpAddr, DowncastError>
If the Value is an IpAddr, return it. Returns Err otherwise.
Sourcepub fn as_list(&self) -> Result<&List<Self>, DowncastError>
pub fn as_list(&self) -> Result<&List<Self>, DowncastError>
If the Value is an List, return a reference to it. Returns Err otherwise.
Sourcepub fn into_list(self) -> Result<List<Self>, DowncastError>
pub fn into_list(self) -> Result<List<Self>, DowncastError>
If the Value is an List, return it. Returns Err otherwise.
Sourcepub fn as_map(&self) -> Result<&HashMap<Self, Self>, DowncastError>
pub fn as_map(&self) -> Result<&HashMap<Self, Self>, DowncastError>
If the Value is an Map, return a reference to it. Returns Err otherwise.
Sourcepub fn into_map(self) -> Result<HashMap<Self, Self>, DowncastError>
pub fn into_map(self) -> Result<HashMap<Self, Self>, DowncastError>
If the Value is an Map, return it. Returns Err otherwise.
Sourcepub fn as_group(&self) -> Result<&Group, DowncastError>
pub fn as_group(&self) -> Result<&Group, DowncastError>
If the Value is an Group, return a reference to it. Returns Err otherwise.
Sourcepub fn into_group(self) -> Result<Group, DowncastError>
pub fn into_group(self) -> Result<Group, DowncastError>
If the Value is an Group, return it. Returns Err otherwise.
Sourcepub fn is_option(&self) -> bool
pub fn is_option(&self) -> bool
Returns true if the Value is an Option. Returns false otherwise.
Sourcepub fn into_option(self) -> Result<Option<Self>, DowncastError>
pub fn into_option(self) -> Result<Option<Self>, DowncastError>
If the Value is an Option, return it. Returns Err otherwise.
Trait Implementations§
Source§impl AmadeusOrd for Value
impl AmadeusOrd for Value
fn amadeus_cmp(&self, other: &Self) -> Ordering
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<T> DowncastFrom<Value> for [T; 0]
impl<T> DowncastFrom<Value> for [T; 0]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 1]
impl<T> DowncastFrom<Value> for [T; 1]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 10]
impl<T> DowncastFrom<Value> for [T; 10]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 11]
impl<T> DowncastFrom<Value> for [T; 11]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 12]
impl<T> DowncastFrom<Value> for [T; 12]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 13]
impl<T> DowncastFrom<Value> for [T; 13]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 14]
impl<T> DowncastFrom<Value> for [T; 14]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 15]
impl<T> DowncastFrom<Value> for [T; 15]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 16]
impl<T> DowncastFrom<Value> for [T; 16]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 17]
impl<T> DowncastFrom<Value> for [T; 17]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 18]
impl<T> DowncastFrom<Value> for [T; 18]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 19]
impl<T> DowncastFrom<Value> for [T; 19]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 2]
impl<T> DowncastFrom<Value> for [T; 2]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 20]
impl<T> DowncastFrom<Value> for [T; 20]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 21]
impl<T> DowncastFrom<Value> for [T; 21]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 22]
impl<T> DowncastFrom<Value> for [T; 22]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 23]
impl<T> DowncastFrom<Value> for [T; 23]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 24]
impl<T> DowncastFrom<Value> for [T; 24]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 25]
impl<T> DowncastFrom<Value> for [T; 25]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 26]
impl<T> DowncastFrom<Value> for [T; 26]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 27]
impl<T> DowncastFrom<Value> for [T; 27]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 28]
impl<T> DowncastFrom<Value> for [T; 28]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 29]
impl<T> DowncastFrom<Value> for [T; 29]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 3]
impl<T> DowncastFrom<Value> for [T; 3]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 30]
impl<T> DowncastFrom<Value> for [T; 30]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 31]
impl<T> DowncastFrom<Value> for [T; 31]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 32]
impl<T> DowncastFrom<Value> for [T; 32]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 4]
impl<T> DowncastFrom<Value> for [T; 4]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 5]
impl<T> DowncastFrom<Value> for [T; 5]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 6]
impl<T> DowncastFrom<Value> for [T; 6]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 7]
impl<T> DowncastFrom<Value> for [T; 7]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 8]
impl<T> DowncastFrom<Value> for [T; 8]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for [T; 9]
impl<T> DowncastFrom<Value> for [T; 9]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for ()
impl DowncastFrom<Value> for ()
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A> DowncastFrom<Value> for (A,)where
A: DowncastFrom<Value>,
impl<A> DowncastFrom<Value> for (A,)where
A: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B> DowncastFrom<Value> for (A, B)
impl<A, B> DowncastFrom<Value> for (A, B)
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C> DowncastFrom<Value> for (A, B, C)
impl<A, B, C> DowncastFrom<Value> for (A, B, C)
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D> DowncastFrom<Value> for (A, B, C, D)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
impl<A, B, C, D> DowncastFrom<Value> for (A, B, C, D)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D, E> DowncastFrom<Value> for (A, B, C, D, E)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
impl<A, B, C, D, E> DowncastFrom<Value> for (A, B, C, D, E)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D, E, F> DowncastFrom<Value> for (A, B, C, D, E, F)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
impl<A, B, C, D, E, F> DowncastFrom<Value> for (A, B, C, D, E, F)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D, E, F, G> DowncastFrom<Value> for (A, B, C, D, E, F, G)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
impl<A, B, C, D, E, F, G> DowncastFrom<Value> for (A, B, C, D, E, F, G)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D, E, F, G, H> DowncastFrom<Value> for (A, B, C, D, E, F, G, H)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
impl<A, B, C, D, E, F, G, H> DowncastFrom<Value> for (A, B, C, D, E, F, G, H)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D, E, F, G, H, I> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
I: DowncastFrom<Value>,
impl<A, B, C, D, E, F, G, H, I> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
I: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D, E, F, G, H, I, J> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I, J)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
I: DowncastFrom<Value>,
J: DowncastFrom<Value>,
impl<A, B, C, D, E, F, G, H, I, J> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I, J)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
I: DowncastFrom<Value>,
J: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D, E, F, G, H, I, J, K> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I, J, K)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
I: DowncastFrom<Value>,
J: DowncastFrom<Value>,
K: DowncastFrom<Value>,
impl<A, B, C, D, E, F, G, H, I, J, K> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I, J, K)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
I: DowncastFrom<Value>,
J: DowncastFrom<Value>,
K: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I, J, K, L)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
I: DowncastFrom<Value>,
J: DowncastFrom<Value>,
K: DowncastFrom<Value>,
L: DowncastFrom<Value>,
impl<A, B, C, D, E, F, G, H, I, J, K, L> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I, J, K, L)where
A: DowncastFrom<Value>,
B: DowncastFrom<Value>,
C: DowncastFrom<Value>,
D: DowncastFrom<Value>,
E: DowncastFrom<Value>,
F: DowncastFrom<Value>,
G: DowncastFrom<Value>,
H: DowncastFrom<Value>,
I: DowncastFrom<Value>,
J: DowncastFrom<Value>,
K: DowncastFrom<Value>,
L: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Bson
impl DowncastFrom<Value> for Bson
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Date
impl DowncastFrom<Value> for Date
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for DateTime
impl DowncastFrom<Value> for DateTime
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for DateTimeWithoutTimezone
impl DowncastFrom<Value> for DateTimeWithoutTimezone
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for DateWithoutTimezone
impl DowncastFrom<Value> for DateWithoutTimezone
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Decimal
impl DowncastFrom<Value> for Decimal
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Enum
impl DowncastFrom<Value> for Enum
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Group
impl DowncastFrom<Value> for Group
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<K, V, S> DowncastFrom<Value> for HashMap<K, V, S>
impl<K, V, S> DowncastFrom<Value> for HashMap<K, V, S>
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for IpAddr
impl DowncastFrom<Value> for IpAddr
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Json
impl DowncastFrom<Value> for Json
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for List<T>
impl<T> DowncastFrom<Value> for List<T>
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<T> DowncastFrom<Value> for Option<T>where
T: DowncastFrom<Value>,
impl<T> DowncastFrom<Value> for Option<T>where
T: DowncastFrom<Value>,
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for String
impl DowncastFrom<Value> for String
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Time
impl DowncastFrom<Value> for Time
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for TimeWithoutTimezone
impl DowncastFrom<Value> for TimeWithoutTimezone
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Timezone
impl DowncastFrom<Value> for Timezone
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Url
impl DowncastFrom<Value> for Url
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Value
impl DowncastFrom<Value> for Value
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for Webpage<'static>
impl DowncastFrom<Value> for Webpage<'static>
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for bool
impl DowncastFrom<Value> for bool
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for f32
impl DowncastFrom<Value> for f32
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for f64
impl DowncastFrom<Value> for f64
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for i16
impl DowncastFrom<Value> for i16
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for i32
impl DowncastFrom<Value> for i32
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for i64
impl DowncastFrom<Value> for i64
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for i8
impl DowncastFrom<Value> for i8
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for u16
impl DowncastFrom<Value> for u16
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for u32
impl DowncastFrom<Value> for u32
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for u64
impl DowncastFrom<Value> for u64
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl DowncastFrom<Value> for u8
impl DowncastFrom<Value> for u8
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl<A, B, C, D> From<(A, B, C, D)> for Value
impl<A, B, C, D> From<(A, B, C, D)> for Value
Source§fn from(value: (A, B, C, D)) -> Self
fn from(value: (A, B, C, D)) -> Self
Source§impl<A, B, C, D, E> From<(A, B, C, D, E)> for Value
impl<A, B, C, D, E> From<(A, B, C, D, E)> for Value
Source§fn from(value: (A, B, C, D, E)) -> Self
fn from(value: (A, B, C, D, E)) -> Self
Source§impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Value
impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Value
Source§fn from(value: (A, B, C, D, E, F)) -> Self
fn from(value: (A, B, C, D, E, F)) -> Self
Source§impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Value
impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Value
Source§fn from(value: (A, B, C, D, E, F, G)) -> Self
fn from(value: (A, B, C, D, E, F, G)) -> Self
Source§impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Value
impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Value
Source§fn from(value: (A, B, C, D, E, F, G, H)) -> Self
fn from(value: (A, B, C, D, E, F, G, H)) -> Self
Source§impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Value
impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Value
Source§fn from(value: (A, B, C, D, E, F, G, H, I)) -> Self
fn from(value: (A, B, C, D, E, F, G, H, I)) -> Self
Source§impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Value
impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Value
Source§fn from(value: (A, B, C, D, E, F, G, H, I, J)) -> Self
fn from(value: (A, B, C, D, E, F, G, H, I, J)) -> Self
Source§impl<A, B, C, D, E, F, G, H, I, J, K> From<(A, B, C, D, E, F, G, H, I, J, K)> for Value
impl<A, B, C, D, E, F, G, H, I, J, K> From<(A, B, C, D, E, F, G, H, I, J, K)> for Value
Source§fn from(value: (A, B, C, D, E, F, G, H, I, J, K)) -> Self
fn from(value: (A, B, C, D, E, F, G, H, I, J, K)) -> Self
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Value
impl<A, B, C, D, E, F, G, H, I, J, K, L> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Value
Source§fn from(value: (A, B, C, D, E, F, G, H, I, J, K, L)) -> Self
fn from(value: (A, B, C, D, E, F, G, H, I, J, K, L)) -> Self
Source§impl From<DateTimeWithoutTimezone> for Value
impl From<DateTimeWithoutTimezone> for Value
Source§fn from(value: DateTimeWithoutTimezone) -> Self
fn from(value: DateTimeWithoutTimezone) -> Self
Source§impl From<DateWithoutTimezone> for Value
impl From<DateWithoutTimezone> for Value
Source§fn from(value: DateWithoutTimezone) -> Self
fn from(value: DateWithoutTimezone) -> Self
Source§impl From<TimeWithoutTimezone> for Value
impl From<TimeWithoutTimezone> for Value
Source§fn from(value: TimeWithoutTimezone) -> Self
fn from(value: TimeWithoutTimezone) -> Self
Source§impl From<ValueRequired> for Value
impl From<ValueRequired> for Value
Source§fn from(value: ValueRequired) -> Self
fn from(value: ValueRequired) -> Self
Source§impl<A, B, C, D> PartialEq<(A, B, C, D)> for Value
impl<A, B, C, D> PartialEq<(A, B, C, D)> for Value
Source§impl<A, B, C, D, E> PartialEq<(A, B, C, D, E)> for Value
impl<A, B, C, D, E> PartialEq<(A, B, C, D, E)> for Value
Source§impl<A, B, C, D, E, F> PartialEq<(A, B, C, D, E, F)> for Value
impl<A, B, C, D, E, F> PartialEq<(A, B, C, D, E, F)> for Value
Source§impl<A, B, C, D, E, F, G> PartialEq<(A, B, C, D, E, F, G)> for Value
impl<A, B, C, D, E, F, G> PartialEq<(A, B, C, D, E, F, G)> for Value
Source§impl<A, B, C, D, E, F, G, H> PartialEq<(A, B, C, D, E, F, G, H)> for Value
impl<A, B, C, D, E, F, G, H> PartialEq<(A, B, C, D, E, F, G, H)> for Value
Source§impl<A, B, C, D, E, F, G, H, I> PartialEq<(A, B, C, D, E, F, G, H, I)> for Value
impl<A, B, C, D, E, F, G, H, I> PartialEq<(A, B, C, D, E, F, G, H, I)> for Value
Source§impl<A, B, C, D, E, F, G, H, I, J> PartialEq<(A, B, C, D, E, F, G, H, I, J)> for Value
impl<A, B, C, D, E, F, G, H, I, J> PartialEq<(A, B, C, D, E, F, G, H, I, J)> for Value
Source§fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool
fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool
self and other values to be equal, and is used by ==.Source§impl<A, B, C, D, E, F, G, H, I, J, K> PartialEq<(A, B, C, D, E, F, G, H, I, J, K)> for Value
impl<A, B, C, D, E, F, G, H, I, J, K> PartialEq<(A, B, C, D, E, F, G, H, I, J, K)> for Value
Source§fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool
fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool
self and other values to be equal, and is used by ==.Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<(A, B, C, D, E, F, G, H, I, J, K, L)> for Value
impl<A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<(A, B, C, D, E, F, G, H, I, J, K, L)> for Value
Source§fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool
fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialEq<DateTimeWithoutTimezone> for Value
impl PartialEq<DateTimeWithoutTimezone> for Value
Source§impl PartialEq<DateWithoutTimezone> for Value
impl PartialEq<DateWithoutTimezone> for Value
Source§impl PartialEq<TimeWithoutTimezone> for Value
impl PartialEq<TimeWithoutTimezone> for Value
Source§impl PartialOrd for Value
impl PartialOrd for Value
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A, B> Downcast<A> for Bwhere
A: DowncastFrom<B>,
impl<A, B> Downcast<A> for Bwhere
A: DowncastFrom<B>,
fn downcast(self) -> Result<A, DowncastError>
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more