Enum amadeus::Value[][src]

pub enum Value {
Show 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, RandomState>), 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 of key-value pairs.

Group(Group)

Struct, child elements are tuples of field-value pairs.

Optional element.

Implementations

impl Value[src]

pub fn is_bool(&self) -> bool[src]

Returns true if the Value is an Bool. Returns false otherwise.

pub fn as_bool(&self) -> Result<bool, DowncastError>[src]

If the Value is an Bool, return a reference to it. Returns Err otherwise.

pub fn into_bool(self) -> Result<bool, DowncastError>[src]

If the Value is an Bool, return it. Returns Err otherwise.

pub fn is_u8(&self) -> bool[src]

Returns true if the Value is an U8. Returns false otherwise.

pub fn as_u8(&self) -> Result<u8, DowncastError>[src]

If the Value is an U8, return a reference to it. Returns Err otherwise.

pub fn into_u8(self) -> Result<u8, DowncastError>[src]

If the Value is an U8, return it. Returns Err otherwise.

pub fn is_i8(&self) -> bool[src]

Returns true if the Value is an I8. Returns false otherwise.

pub fn as_i8(&self) -> Result<i8, DowncastError>[src]

If the Value is an I8, return a reference to it. Returns Err otherwise.

pub fn into_i8(self) -> Result<i8, DowncastError>[src]

If the Value is an I8, return it. Returns Err otherwise.

pub fn is_u16(&self) -> bool[src]

Returns true if the Value is an U16. Returns false otherwise.

pub fn as_u16(&self) -> Result<u16, DowncastError>[src]

If the Value is an U16, return a reference to it. Returns Err otherwise.

pub fn into_u16(self) -> Result<u16, DowncastError>[src]

If the Value is an U16, return it. Returns Err otherwise.

pub fn is_i16(&self) -> bool[src]

Returns true if the Value is an I16. Returns false otherwise.

pub fn as_i16(&self) -> Result<i16, DowncastError>[src]

If the Value is an I16, return a reference to it. Returns Err otherwise.

pub fn into_i16(self) -> Result<i16, DowncastError>[src]

If the Value is an I16, return it. Returns Err otherwise.

pub fn is_u32(&self) -> bool[src]

Returns true if the Value is an U32. Returns false otherwise.

pub fn as_u32(&self) -> Result<u32, DowncastError>[src]

If the Value is an U32, return a reference to it. Returns Err otherwise.

pub fn into_u32(self) -> Result<u32, DowncastError>[src]

If the Value is an U32, return it. Returns Err otherwise.

pub fn is_i32(&self) -> bool[src]

Returns true if the Value is an I32. Returns false otherwise.

pub fn as_i32(&self) -> Result<i32, DowncastError>[src]

If the Value is an I32, return a reference to it. Returns Err otherwise.

pub fn into_i32(self) -> Result<i32, DowncastError>[src]

If the Value is an I32, return it. Returns Err otherwise.

pub fn is_u64(&self) -> bool[src]

Returns true if the Value is an U64. Returns false otherwise.

pub fn as_u64(&self) -> Result<u64, DowncastError>[src]

If the Value is an U64, return a reference to it. Returns Err otherwise.

pub fn into_u64(self) -> Result<u64, DowncastError>[src]

If the Value is an U64, return it. Returns Err otherwise.

pub fn is_i64(&self) -> bool[src]

Returns true if the Value is an I64. Returns false otherwise.

pub fn as_i64(&self) -> Result<i64, DowncastError>[src]

If the Value is an I64, return a reference to it. Returns Err otherwise.

pub fn into_i64(self) -> Result<i64, DowncastError>[src]

If the Value is an I64, return it. Returns Err otherwise.

pub fn is_f32(&self) -> bool[src]

Returns true if the Value is an F32. Returns false otherwise.

pub fn as_f32(&self) -> Result<f32, DowncastError>[src]

If the Value is an F32, return a reference to it. Returns Err otherwise.

pub fn into_f32(self) -> Result<f32, DowncastError>[src]

If the Value is an F32, return it. Returns Err otherwise.

pub fn is_f64(&self) -> bool[src]

Returns true if the Value is an F64. Returns false otherwise.

pub fn as_f64(&self) -> Result<f64, DowncastError>[src]

If the Value is an F64, return a reference to it. Returns Err otherwise.

pub fn into_f64(self) -> Result<f64, DowncastError>[src]

If the Value is an F64, return it. Returns Err otherwise.

pub fn is_date(&self) -> bool[src]

Returns true if the Value is an Date. Returns false otherwise.

pub fn as_date(&self) -> Result<&Date, DowncastError>[src]

If the Value is an Date, return a reference to it. Returns Err otherwise.

pub fn into_date(self) -> Result<Date, DowncastError>[src]

If the Value is an Date, return it. Returns Err otherwise.

pub fn is_date_without_timezone(&self) -> bool[src]

Returns true if the Value is an DateWithoutTimezone. Returns false otherwise.

pub fn as_date_without_timezone(
    &self
) -> Result<&DateWithoutTimezone, DowncastError>
[src]

If the Value is an DateWithoutTimezone, return a reference to it. Returns Err otherwise.

pub fn into_date_without_timezone(
    self
) -> Result<DateWithoutTimezone, DowncastError>
[src]

If the Value is an DateWithoutTimezone, return it. Returns Err otherwise.

pub fn is_time(&self) -> bool[src]

Returns true if the Value is an Time. Returns false otherwise.

pub fn as_time(&self) -> Result<&Time, DowncastError>[src]

If the Value is an Time, return a reference to it. Returns Err otherwise.

pub fn into_time(self) -> Result<Time, DowncastError>[src]

If the Value is an Time, return it. Returns Err otherwise.

pub fn is_time_without_timezone(&self) -> bool[src]

Returns true if the Value is an TimeWithoutTimezone. Returns false otherwise.

pub fn as_time_without_timezone(
    &self
) -> Result<&TimeWithoutTimezone, DowncastError>
[src]

If the Value is an TimeWithoutTimezone, return a reference to it. Returns Err otherwise.

pub fn into_time_without_timezone(
    self
) -> Result<TimeWithoutTimezone, DowncastError>
[src]

If the Value is an TimeWithoutTimezone, return it. Returns Err otherwise.

pub fn is_date_time(&self) -> bool[src]

Returns true if the Value is an DateTime. Returns false otherwise.

pub fn as_date_time(&self) -> Result<&DateTime, DowncastError>[src]

If the Value is an DateTime, return a reference to it. Returns Err otherwise.

pub fn into_date_time(self) -> Result<DateTime, DowncastError>[src]

If the Value is an DateTime, return it. Returns Err otherwise.

pub fn is_date_time_without_timezone(&self) -> bool[src]

Returns true if the Value is an DateTimeWithoutTimezone. Returns false otherwise.

pub fn as_date_time_without_timezone(
    &self
) -> Result<&DateTimeWithoutTimezone, DowncastError>
[src]

If the Value is an DateTimeWithoutTimezone, return a reference to it. Returns Err otherwise.

pub fn into_date_time_without_timezone(
    self
) -> Result<DateTimeWithoutTimezone, DowncastError>
[src]

If the Value is an DateTimeWithoutTimezone, return it. Returns Err otherwise.

pub fn is_timezone(&self) -> bool[src]

Returns true if the Value is an Timezone. Returns false otherwise.

pub fn as_timezone(&self) -> Result<&Timezone, DowncastError>[src]

If the Value is an Timezone, return a reference to it. Returns Err otherwise.

pub fn into_timezone(self) -> Result<Timezone, DowncastError>[src]

If the Value is an Timezone, return it. Returns Err otherwise.

pub fn is_decimal(&self) -> bool[src]

Returns true if the Value is an Decimal. Returns false otherwise.

pub fn as_decimal(&self) -> Result<&Decimal, DowncastError>[src]

If the Value is an Decimal, return a reference to it. Returns Err otherwise.

pub fn into_decimal(self) -> Result<Decimal, DowncastError>[src]

If the Value is an Decimal, return it. Returns Err otherwise.

pub fn is_bson(&self) -> bool[src]

Returns true if the Value is an Bson. Returns false otherwise.

pub fn as_bson(&self) -> Result<&Bson, DowncastError>[src]

If the Value is an Bson, return a reference to it. Returns Err otherwise.

pub fn into_bson(self) -> Result<Bson, DowncastError>[src]

If the Value is an Bson, return it. Returns Err otherwise.

pub fn is_string(&self) -> bool[src]

Returns true if the Value is an String. Returns false otherwise.

pub fn as_string(&self) -> Result<&String, DowncastError>[src]

If the Value is an String, return a reference to it. Returns Err otherwise.

pub fn into_string(self) -> Result<String, DowncastError>[src]

If the Value is an String, return it. Returns Err otherwise.

pub fn is_json(&self) -> bool[src]

Returns true if the Value is an Json. Returns false otherwise.

pub fn as_json(&self) -> Result<&Json, DowncastError>[src]

If the Value is an Json, return a reference to it. Returns Err otherwise.

pub fn into_json(self) -> Result<Json, DowncastError>[src]

If the Value is an Json, return it. Returns Err otherwise.

pub fn is_enum(&self) -> bool[src]

Returns true if the Value is an Enum. Returns false otherwise.

pub fn as_enum(&self) -> Result<&Enum, DowncastError>[src]

If the Value is an Enum, return a reference to it. Returns Err otherwise.

pub fn into_enum(self) -> Result<Enum, DowncastError>[src]

If the Value is an Enum, return it. Returns Err otherwise.

pub fn is_url(&self) -> bool[src]

Returns true if the Value is an Url. Returns false otherwise.

pub fn as_url(&self) -> Result<&Url, DowncastError>[src]

If the Value is an Url, return a reference to it. Returns Err otherwise.

pub fn into_url(self) -> Result<Url, DowncastError>[src]

If the Value is an Url, return it. Returns Err otherwise.

pub fn is_webpage(&self) -> bool[src]

Returns true if the Value is an Webpage. Returns false otherwise.

pub fn as_webpage(&self) -> Result<&Webpage<'_>, DowncastError>[src]

If the Value is an Webpage, return a reference to it. Returns Err otherwise.

pub fn into_webpage(self) -> Result<Webpage<'static>, DowncastError>[src]

If the Value is an Webpage, return it. Returns Err otherwise.

pub fn is_ip_addr(&self) -> bool[src]

Returns true if the Value is an IpAddr. Returns false otherwise.

pub fn as_ip_addr(&self) -> Result<&IpAddr, DowncastError>[src]

If the Value is an IpAddr, return a reference to it. Returns Err otherwise.

pub fn into_ip_addr(self) -> Result<IpAddr, DowncastError>[src]

If the Value is an IpAddr, return it. Returns Err otherwise.

pub fn is_list(&self) -> bool[src]

Returns true if the Value is an List. Returns false otherwise.

pub fn as_list(&self) -> Result<&List<Value>, DowncastError>[src]

If the Value is an List, return a reference to it. Returns Err otherwise.

pub fn into_list(self) -> Result<List<Value>, DowncastError>[src]

If the Value is an List, return it. Returns Err otherwise.

pub fn is_map(&self) -> bool[src]

Returns true if the Value is an Map. Returns false otherwise.

pub fn as_map(
    &self
) -> Result<&HashMap<Value, Value, RandomState>, DowncastError>
[src]

If the Value is an Map, return a reference to it. Returns Err otherwise.

pub fn into_map(
    self
) -> Result<HashMap<Value, Value, RandomState>, DowncastError>
[src]

If the Value is an Map, return it. Returns Err otherwise.

pub fn is_group(&self) -> bool[src]

Returns true if the Value is an Group. Returns false otherwise.

pub fn as_group(&self) -> Result<&Group, DowncastError>[src]

If the Value is an Group, return a reference to it. Returns Err otherwise.

pub fn into_group(self) -> Result<Group, DowncastError>[src]

If the Value is an Group, return it. Returns Err otherwise.

pub fn is_option(&self) -> bool[src]

Returns true if the Value is an Option. Returns false otherwise.

pub fn into_option(self) -> Result<Option<Value>, DowncastError>[src]

If the Value is an Option, return it. Returns Err otherwise.

Trait Implementations

impl AmadeusOrd for Value[src]

pub fn amadeus_cmp(&self, other: &Value) -> Ordering[src]

impl Clone for Value[src]

pub fn clone(&self) -> Value[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Data for Value[src]

type Vec = ValueVec

type DynamicType = ValueType

pub fn new_vec(type_: <Value as Data>::DynamicType) -> <Value as Data>::Vec[src]

impl Data for Value[src]

fn heap(&self) -> usize[src]

fn size(&self) -> usize[src]

fn cast<D: Data>(self) -> Result<D, CastError>[src]

fn eq<D: Data>(self, other: D) -> bool[src]

fn partial_cmp<D: Data>(self, other: D) -> Option<Ordering>[src]

fn hash<H: Hasher>(self, state: &mut H)[src]

impl Debug for Value[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for Value[src]

pub fn deserialize<__D>(
    __deserializer: __D
) -> Result<Value, <__D as Deserializer<'de>>::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T> DowncastFrom<Value> for [T; 29] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 16] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<K, V, S> DowncastFrom<Value> for HashMap<K, V, S> where
    K: DowncastFrom<Value> + Hash + Eq,
    V: DowncastFrom<Value>,
    S: BuildHasher + Default
[src]

pub fn downcast_from(self_: Value) -> Result<HashMap<K, V, S>, DowncastError>[src]

impl DowncastFrom<Value> for i32[src]

impl DowncastFrom<Value> for u32[src]

impl<A, B> DowncastFrom<Value> for (A, B) where
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 18] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for Group[src]

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
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    H: DowncastFrom<Value>,
    K: DowncastFrom<Value>,
    F: DowncastFrom<Value>,
    I: DowncastFrom<Value>,
    E: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>,
    G: DowncastFrom<Value>,
    J: DowncastFrom<Value>,
    L: DowncastFrom<Value>, 
[src]

pub fn downcast_from(
    self_: Value
) -> Result<(A, B, C, D, E, F, G, H, I, J, K, L), DowncastError>
[src]

impl DowncastFrom<Value> for Url[src]

impl DowncastFrom<Value> for Enum[src]

impl<A, B, C, D, E, F> DowncastFrom<Value> for (A, B, C, D, E, F) where
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    F: DowncastFrom<Value>,
    E: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>, 
[src]

pub fn downcast_from(self_: Value) -> Result<(A, B, C, D, E, F), DowncastError>[src]

impl<T> DowncastFrom<Value> for [T; 5] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 32] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<A, B, C, D, E, F, G, H> DowncastFrom<Value> for (A, B, C, D, E, F, G, H) where
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    H: DowncastFrom<Value>,
    F: DowncastFrom<Value>,
    E: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>,
    G: DowncastFrom<Value>, 
[src]

pub fn downcast_from(
    self_: Value
) -> Result<(A, B, C, D, E, F, G, H), DowncastError>
[src]

impl<A, B, C, D, E, F, G> DowncastFrom<Value> for (A, B, C, D, E, F, G) where
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    F: DowncastFrom<Value>,
    E: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>,
    G: DowncastFrom<Value>, 
[src]

pub fn downcast_from(
    self_: Value
) -> Result<(A, B, C, D, E, F, G), DowncastError>
[src]

impl DowncastFrom<Value> for Timezone[src]

impl<T> DowncastFrom<Value> for [T; 11] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for TimeWithoutTimezone[src]

impl<T> DowncastFrom<Value> for [T; 25] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 13] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 9] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 23] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for i64[src]

impl DowncastFrom<Value> for DateTimeWithoutTimezone[src]

impl<T> DowncastFrom<Value> for [T; 30] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 12] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<A, B, C, D, E> DowncastFrom<Value> for (A, B, C, D, E) where
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    E: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>, 
[src]

pub fn downcast_from(self_: Value) -> Result<(A, B, C, D, E), DowncastError>[src]

impl<T> DowncastFrom<Value> for [T; 1] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for Json[src]

impl DowncastFrom<Value> for DateWithoutTimezone[src]

impl<T> DowncastFrom<Value> for List<T> where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for ()[src]

impl DowncastFrom<Value> for Decimal[src]

impl<A, B, C, D, E, F, G, H, I> DowncastFrom<Value> for (A, B, C, D, E, F, G, H, I) where
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    H: DowncastFrom<Value>,
    F: DowncastFrom<Value>,
    I: DowncastFrom<Value>,
    E: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>,
    G: DowncastFrom<Value>, 
[src]

pub fn downcast_from(
    self_: Value
) -> Result<(A, B, C, D, E, F, G, H, I), DowncastError>
[src]

impl<T> DowncastFrom<Value> for [T; 4] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 27] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 31] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for Bson[src]

impl<T> DowncastFrom<Value> for [T; 20] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 15] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 10] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 0] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for bool[src]

impl<T> DowncastFrom<Value> for [T; 28] where
    T: Data + DowncastFrom<Value>, 
[src]

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
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    H: DowncastFrom<Value>,
    F: DowncastFrom<Value>,
    I: DowncastFrom<Value>,
    E: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>,
    G: DowncastFrom<Value>,
    J: DowncastFrom<Value>, 
[src]

pub fn downcast_from(
    self_: Value
) -> Result<(A, B, C, D, E, F, G, H, I, J), DowncastError>
[src]

impl<T> DowncastFrom<Value> for [T; 21] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 7] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for String[src]

impl DowncastFrom<Value> for f32[src]

impl<A, B, C> DowncastFrom<Value> for (A, B, C) where
    C: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>, 
[src]

pub fn downcast_from(self_: Value) -> Result<(A, B, C), DowncastError>[src]

impl<T> DowncastFrom<Value> for [T; 3] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for Value[src]

impl<T> DowncastFrom<Value> for [T; 24] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for IpAddr[src]

impl DowncastFrom<Value> for Time[src]

impl DowncastFrom<Value> for Webpage<'static>[src]

pub fn downcast_from(self_: Value) -> Result<Webpage<'static>, DowncastError>[src]

impl<T> DowncastFrom<Value> for [T; 22] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for f64[src]

impl DowncastFrom<Value> for DateTime[src]

impl<T> DowncastFrom<Value> for [T; 6] where
    T: Data + DowncastFrom<Value>, 
[src]

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
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    H: DowncastFrom<Value>,
    K: DowncastFrom<Value>,
    F: DowncastFrom<Value>,
    I: DowncastFrom<Value>,
    E: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>,
    G: DowncastFrom<Value>,
    J: DowncastFrom<Value>, 
[src]

pub fn downcast_from(
    self_: Value
) -> Result<(A, B, C, D, E, F, G, H, I, J, K), DowncastError>
[src]

impl DowncastFrom<Value> for i8[src]

impl<T> DowncastFrom<Value> for [T; 8] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for u8[src]

impl<T> DowncastFrom<Value> for [T; 26] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 2] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for u64[src]

impl<T> DowncastFrom<Value> for [T; 17] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for u16[src]

impl<T> DowncastFrom<Value> for [T; 19] where
    T: Data + DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for Option<T> where
    T: DowncastFrom<Value>, 
[src]

impl<T> DowncastFrom<Value> for [T; 14] where
    T: Data + DowncastFrom<Value>, 
[src]

impl DowncastFrom<Value> for Date[src]

impl<A, B, C, D> DowncastFrom<Value> for (A, B, C, D) where
    C: DowncastFrom<Value>,
    D: DowncastFrom<Value>,
    A: DowncastFrom<Value>,
    B: DowncastFrom<Value>, 
[src]

pub fn downcast_from(self_: Value) -> Result<(A, B, C, D), DowncastError>[src]

impl DowncastFrom<Value> for CloudfrontRow[src]

impl DowncastFrom<Value> for i16[src]

impl<A> DowncastFrom<Value> for (A,) where
    A: DowncastFrom<Value>, 
[src]

impl<T> From<[T; 0]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 0]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 1]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 1]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 10]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 10]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 11]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 11]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 12]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 12]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 13]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 13]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 14]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 14]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 15]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 15]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 16]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 16]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 17]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 17]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 18]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 18]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 19]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 19]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 2]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 2]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 20]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 20]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 21]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 21]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 22]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 22]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 23]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 23]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 24]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 24]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 25]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 25]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 26]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 26]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 27]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 27]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 28]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 28]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 29]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 29]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 3]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 3]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 30]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 30]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 31]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 31]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 32]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 32]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 4]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 4]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 5]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 5]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 6]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 6]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 7]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 7]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 8]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 8]) -> Value[src]

Performs the conversion.

impl<T> From<[T; 9]> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: [T; 9]) -> Value[src]

Performs the conversion.

impl From<()> for Value[src]

pub fn from(value: ()) -> Value[src]

Performs the conversion.

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 where
    C: Into<Value>,
    D: Into<Value>,
    H: Into<Value>,
    K: Into<Value>,
    F: Into<Value>,
    I: Into<Value>,
    E: Into<Value>,
    A: Into<Value>,
    B: Into<Value>,
    G: Into<Value>,
    J: Into<Value>,
    L: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D, E, F, G, H, I, J, K, L)) -> Value[src]

Performs the conversion.

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 where
    C: Into<Value>,
    D: Into<Value>,
    H: Into<Value>,
    K: Into<Value>,
    F: Into<Value>,
    I: Into<Value>,
    E: Into<Value>,
    A: Into<Value>,
    B: Into<Value>,
    G: Into<Value>,
    J: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D, E, F, G, H, I, J, K)) -> Value[src]

Performs the conversion.

impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Value where
    C: Into<Value>,
    D: Into<Value>,
    H: Into<Value>,
    F: Into<Value>,
    I: Into<Value>,
    E: Into<Value>,
    A: Into<Value>,
    B: Into<Value>,
    G: Into<Value>,
    J: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D, E, F, G, H, I, J)) -> Value[src]

Performs the conversion.

impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Value where
    C: Into<Value>,
    D: Into<Value>,
    H: Into<Value>,
    F: Into<Value>,
    I: Into<Value>,
    E: Into<Value>,
    A: Into<Value>,
    B: Into<Value>,
    G: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D, E, F, G, H, I)) -> Value[src]

Performs the conversion.

impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Value where
    C: Into<Value>,
    D: Into<Value>,
    H: Into<Value>,
    F: Into<Value>,
    E: Into<Value>,
    A: Into<Value>,
    B: Into<Value>,
    G: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D, E, F, G, H)) -> Value[src]

Performs the conversion.

impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Value where
    C: Into<Value>,
    D: Into<Value>,
    F: Into<Value>,
    E: Into<Value>,
    A: Into<Value>,
    B: Into<Value>,
    G: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D, E, F, G)) -> Value[src]

Performs the conversion.

impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Value where
    C: Into<Value>,
    D: Into<Value>,
    F: Into<Value>,
    E: Into<Value>,
    A: Into<Value>,
    B: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D, E, F)) -> Value[src]

Performs the conversion.

impl<A, B, C, D, E> From<(A, B, C, D, E)> for Value where
    C: Into<Value>,
    D: Into<Value>,
    E: Into<Value>,
    A: Into<Value>,
    B: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D, E)) -> Value[src]

Performs the conversion.

impl<A, B, C, D> From<(A, B, C, D)> for Value where
    C: Into<Value>,
    D: Into<Value>,
    A: Into<Value>,
    B: Into<Value>, 
[src]

pub fn from(value: (A, B, C, D)) -> Value[src]

Performs the conversion.

impl<A, B, C> From<(A, B, C)> for Value where
    C: Into<Value>,
    A: Into<Value>,
    B: Into<Value>, 
[src]

pub fn from(value: (A, B, C)) -> Value[src]

Performs the conversion.

impl<A, B> From<(A, B)> for Value where
    A: Into<Value>,
    B: Into<Value>, 
[src]

pub fn from(value: (A, B)) -> Value[src]

Performs the conversion.

impl<A> From<(A,)> for Value where
    A: Into<Value>, 
[src]

pub fn from(value: (A,)) -> Value[src]

Performs the conversion.

impl<T> From<Box<T, Global>> for Value where
    T: Into<Value>, 
[src]

pub fn from(value: Box<T, Global>) -> Value[src]

Performs the conversion.

impl From<Bson> for Value[src]

pub fn from(value: Bson) -> Value[src]

Performs the conversion.

impl From<CloudfrontRow> for Value[src]

fn from(value: CloudfrontRow) -> Self[src]

Performs the conversion.

impl From<Date> for Value[src]

pub fn from(value: Date) -> Value[src]

Performs the conversion.

impl From<DateTime> for Value[src]

pub fn from(value: DateTime) -> Value[src]

Performs the conversion.

impl From<DateTimeWithoutTimezone> for Value[src]

pub fn from(value: DateTimeWithoutTimezone) -> Value[src]

Performs the conversion.

impl From<DateWithoutTimezone> for Value[src]

pub fn from(value: DateWithoutTimezone) -> Value[src]

Performs the conversion.

impl From<Decimal> for Value[src]

pub fn from(value: Decimal) -> Value[src]

Performs the conversion.

impl From<Enum> for Value[src]

pub fn from(value: Enum) -> Value[src]

Performs the conversion.

impl From<Group> for Value[src]

pub fn from(value: Group) -> Value[src]

Performs the conversion.

impl<K, V, S> From<HashMap<K, V, S>> for Value where
    K: Into<Value> + Hash + Eq,
    V: Into<Value>,
    S: BuildHasher
[src]

pub fn from(value: HashMap<K, V, S>) -> Value[src]

Performs the conversion.

impl From<IpAddr> for Value[src]

pub fn from(value: IpAddr) -> Value[src]

Performs the conversion.

impl From<Json> for Value[src]

pub fn from(value: Json) -> Value[src]

Performs the conversion.

impl<T> From<List<T>> for Value where
    T: Data + Into<Value>, 
[src]

pub fn from(value: List<T>) -> Value[src]

Performs the conversion.

impl<T> From<Option<T>> for Value where
    T: Into<Value>, 
[src]

pub fn from(value: Option<T>) -> Value[src]

Performs the conversion.

impl From<String> for Value[src]

pub fn from(value: String) -> Value[src]

Performs the conversion.

impl From<Time> for Value[src]

pub fn from(value: Time) -> Value[src]

Performs the conversion.

impl From<TimeWithoutTimezone> for Value[src]

pub fn from(value: TimeWithoutTimezone) -> Value[src]

Performs the conversion.

impl From<Timezone> for Value[src]

pub fn from(value: Timezone) -> Value[src]

Performs the conversion.

impl From<Url> for Value[src]

pub fn from(value: Url) -> Value[src]

Performs the conversion.

impl From<ValueRequired> for Value[src]

pub fn from(value: ValueRequired) -> Value[src]

Performs the conversion.

impl From<Webpage<'static>> for Value[src]

pub fn from(value: Webpage<'static>) -> Value[src]

Performs the conversion.

impl From<bool> for Value[src]

pub fn from(value: bool) -> Value[src]

Performs the conversion.

impl From<f32> for Value[src]

pub fn from(value: f32) -> Value[src]

Performs the conversion.

impl From<f64> for Value[src]

pub fn from(value: f64) -> Value[src]

Performs the conversion.

impl From<i16> for Value[src]

pub fn from(value: i16) -> Value[src]

Performs the conversion.

impl From<i32> for Value[src]

pub fn from(value: i32) -> Value[src]

Performs the conversion.

impl From<i64> for Value[src]

pub fn from(value: i64) -> Value[src]

Performs the conversion.

impl From<i8> for Value[src]

pub fn from(value: i8) -> Value[src]

Performs the conversion.

impl From<u16> for Value[src]

pub fn from(value: u16) -> Value[src]

Performs the conversion.

impl From<u32> for Value[src]

pub fn from(value: u32) -> Value[src]

Performs the conversion.

impl From<u64> for Value[src]

pub fn from(value: u64) -> Value[src]

Performs the conversion.

impl From<u8> for Value[src]

pub fn from(value: u8) -> Value[src]

Performs the conversion.

impl Hash for Value[src]

pub fn hash<H>(&self, state: &mut H) where
    H: Hasher
[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl ParquetData for Value[src]

pub fn parse(
    schema: &Type,
    predicate: Option<&<Value as ParquetData>::Predicate>,
    repetition: Option<Repetition>
) -> Result<(String, <Value as ParquetData>::Schema), ParquetError>
[src]

This is reused by many of the other ParquetData implementations. It is the canonical encoding of the mapping from [Type]s to Schemas.

type Schema = ValueSchema

type Reader = ValueReader

type Predicate = ValuePredicate

pub fn reader(
    schema: &<Value as ParquetData>::Schema,
    path: &mut Vec<String, Global>,
    def_level: i16,
    rep_level: i16,
    paths: &mut HashMap<ColumnPath, ColumnReader, RandomState>,
    batch_size: usize
) -> <Value as ParquetData>::Reader
[src]

Builds tree of [Reader]s for the specified [Schema] recursively.

impl PartialEq<()> for Value[src]

pub fn eq(&self, other: &()) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

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 where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>,
    Value: PartialEq<E>,
    Value: PartialEq<F>,
    Value: PartialEq<G>,
    Value: PartialEq<H>,
    Value: PartialEq<I>,
    Value: PartialEq<J>,
    Value: PartialEq<K>,
    Value: PartialEq<L>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

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 where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>,
    Value: PartialEq<E>,
    Value: PartialEq<F>,
    Value: PartialEq<G>,
    Value: PartialEq<H>,
    Value: PartialEq<I>,
    Value: PartialEq<J>,
    Value: PartialEq<K>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B, C, D, E, F, G, H, I, J> PartialEq<(A, B, C, D, E, F, G, H, I, J)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>,
    Value: PartialEq<E>,
    Value: PartialEq<F>,
    Value: PartialEq<G>,
    Value: PartialEq<H>,
    Value: PartialEq<I>,
    Value: PartialEq<J>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B, C, D, E, F, G, H, I> PartialEq<(A, B, C, D, E, F, G, H, I)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>,
    Value: PartialEq<E>,
    Value: PartialEq<F>,
    Value: PartialEq<G>,
    Value: PartialEq<H>,
    Value: PartialEq<I>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B, C, D, E, F, G, H> PartialEq<(A, B, C, D, E, F, G, H)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>,
    Value: PartialEq<E>,
    Value: PartialEq<F>,
    Value: PartialEq<G>,
    Value: PartialEq<H>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G, H)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B, C, D, E, F, G> PartialEq<(A, B, C, D, E, F, G)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>,
    Value: PartialEq<E>,
    Value: PartialEq<F>,
    Value: PartialEq<G>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F, G)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B, C, D, E, F> PartialEq<(A, B, C, D, E, F)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>,
    Value: PartialEq<E>,
    Value: PartialEq<F>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E, F)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B, C, D, E> PartialEq<(A, B, C, D, E)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>,
    Value: PartialEq<E>, 
[src]

pub fn eq(&self, other: &(A, B, C, D, E)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B, C, D> PartialEq<(A, B, C, D)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>,
    Value: PartialEq<D>, 
[src]

pub fn eq(&self, other: &(A, B, C, D)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B, C> PartialEq<(A, B, C)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>,
    Value: PartialEq<C>, 
[src]

pub fn eq(&self, other: &(A, B, C)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, B> PartialEq<(A, B)> for Value where
    Value: PartialEq<A>,
    Value: PartialEq<B>, 
[src]

pub fn eq(&self, other: &(A, B)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A> PartialEq<(A,)> for Value where
    Value: PartialEq<A>, 
[src]

pub fn eq(&self, other: &(A,)) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T> PartialEq<Box<T, Global>> for Value where
    Value: PartialEq<T>, 
[src]

pub fn eq(&self, other: &Box<T, Global>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Bson> for Value[src]

pub fn eq(&self, other: &Bson) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Date> for Value[src]

pub fn eq(&self, other: &Date) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<DateTime> for Value[src]

pub fn eq(&self, other: &DateTime) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<DateTimeWithoutTimezone> for Value[src]

pub fn eq(&self, other: &DateTimeWithoutTimezone) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<DateWithoutTimezone> for Value[src]

pub fn eq(&self, other: &DateWithoutTimezone) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Decimal> for Value[src]

pub fn eq(&self, other: &Decimal) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Enum> for Value[src]

pub fn eq(&self, other: &Enum) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Group> for Value[src]

pub fn eq(&self, other: &Group) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<K, V, S> PartialEq<HashMap<K, V, S>> for Value where
    K: Hash + Eq + Clone + Into<Value>,
    S: BuildHasher,
    Value: PartialEq<K>,
    Value: PartialEq<V>, 
[src]

pub fn eq(&self, other: &HashMap<K, V, S>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<IpAddr> for Value[src]

pub fn eq(&self, other: &IpAddr) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Json> for Value[src]

pub fn eq(&self, other: &Json) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T> PartialEq<List<T>> for Value where
    T: Data,
    Value: PartialEq<T>, 
[src]

pub fn eq(&self, other: &List<T>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T> PartialEq<Option<T>> for Value where
    Value: PartialEq<T>, 
[src]

pub fn eq(&self, other: &Option<T>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<String> for Value[src]

pub fn eq(&self, other: &String) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Time> for Value[src]

pub fn eq(&self, other: &Time) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<TimeWithoutTimezone> for Value[src]

pub fn eq(&self, other: &TimeWithoutTimezone) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Timezone> for Value[src]

pub fn eq(&self, other: &Timezone) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Url> for Value[src]

pub fn eq(&self, other: &Url) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Value> for Value[src]

pub fn eq(&self, other: &Value) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

pub fn ne(&self, other: &Value) -> bool[src]

This method tests for !=.

impl<'a> PartialEq<Webpage<'a>> for Value[src]

pub fn eq(&self, other: &Webpage<'a>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<bool> for Value[src]

pub fn eq(&self, other: &bool) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<f32> for Value[src]

pub fn eq(&self, other: &f32) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<f64> for Value[src]

pub fn eq(&self, other: &f64) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i16> for Value[src]

pub fn eq(&self, other: &i16) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i32> for Value[src]

pub fn eq(&self, other: &i32) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i64> for Value[src]

pub fn eq(&self, other: &i64) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<i8> for Value[src]

pub fn eq(&self, other: &i8) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u16> for Value[src]

pub fn eq(&self, other: &u16) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u32> for Value[src]

pub fn eq(&self, other: &u32) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u64> for Value[src]

pub fn eq(&self, other: &u64) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u8> for Value[src]

pub fn eq(&self, other: &u8) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialOrd<Value> for Value[src]

pub fn partial_cmp(&self, other: &Value) -> Option<Ordering>[src]

This method returns an ordering between self and other values if one exists. Read more

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PostgresData for Value[src]

pub fn query(
    _f: &mut Formatter<'_>,
    _name: Option<&Names<'_>>
) -> Result<(), Error>
[src]

pub fn decode(
    _type_: &Type,
    _buf: Option<&[u8]>
) -> Result<Value, Box<dyn Error + 'static + Sync + Send, Global>>
[src]

impl SerdeData for Value[src]

pub fn serialize<S>(
    &self,
    serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
    S: Serializer
[src]

pub fn deserialize<'de, D>(
    deserializer: D,
    schema: Option<SchemaIncomplete>
) -> Result<Value, <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

impl Serialize for Value[src]

pub fn serialize<__S>(
    &self,
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl Eq for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Any for T where
    T: Any + Serialize + Deserialize
[src]

pub fn as_any(&self) -> &(dyn Any + 'static)[src]

Convert to a &std::any::Any.

pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]

Convert to a &mut std::any::Any.

pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>[src]

Convert to a std::boxed::Box<dyn std::any::Any>.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<A, B> Downcast<A> for B where
    A: DowncastFrom<B>, 
[src]

pub fn downcast(self) -> Result<A, DowncastError>[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

pub fn equivalent(&self, key: &K) -> bool[src]

Compare self to key and return true if they are equal.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

pub fn erased_serialize(
    &self,
    serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> Type for T[src]

pub const METATYPE: MetaType[src]

Enum describing whether a type is TraitObject, Slice or Concrete.

type Meta = Concrete

Type of metadata for type.

pub fn meta(self: *const T) -> <T as Type>::Meta[src]

Retrieve TraitObject, Slice or Concrete meta data respectively for a type

pub fn data(self: *const T) -> *const ()[src]

Retrieve pointer to the data

pub fn data_mut(self: *mut T) -> *mut ()[src]

Retrieve mut pointer to the data

pub fn dangling(_t: <T as Type>::Meta) -> NonNull<T>[src]

Create a dangling non-null *const Self with the provided Self::Meta.

pub fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T[src]

Create a *mut Self with the provided Self::Meta.

fn meta_type(self: *const Self) -> MetaType[src]

Helper method describing whether a type is TraitObject, Slice or Concrete.

impl<T> Type for T where
    T: ?Sized
[src]

pub default fn meta(self: *const T) -> <T as Type>::Meta[src]

Retrieve TraitObject, Slice or Concrete meta data respectively for a type

pub default fn data(self: *const T) -> *const ()[src]

Retrieve pointer to the data

pub default fn data_mut(self: *mut T) -> *mut ()[src]

Retrieve mut pointer to the data

pub default fn dangling(t: <T as Type>::Meta) -> NonNull<T>[src]

Create a dangling non-null *const Self with the provided Self::Meta.

pub default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T[src]

Create a *mut Self with the provided Self::Meta.

const METATYPE: MetaType[src]

Enum describing whether a type is TraitObject, Slice or Concrete.

type Meta: 'static

Type of metadata for type.

fn meta_type(self: *const Self) -> MetaType[src]

Helper method describing whether a type is TraitObject, Slice or Concrete.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V

impl<T> Debug for T where
    T: Debug + Serialize + Deserialize + ?Sized
[src]

impl<T> Deserialize for T where
    T: DeserializeOwned
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> ProcessSend for T where
    T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]