Enum dove::types::Value[][src]

pub enum Value {
Show 21 variants Described(Box<Value>, Box<Value>), Null, Bool(bool), Ubyte(u8), Ushort(u16), Uint(u32), Ulong(u64), Byte(i8), Short(i16), Int(i32), Long(i64), Char(char), Timestamp(u64), Binary(Vec<u8>), Str(&'static str), String(String), Symbol(Vec<u8>), SymbolSlice(&'static [u8]), List(Vec<Value>), Map(Vec<(Value, Value)>), Array(Vec<Value>),
}
Expand description

An owned value type that can be transferred to or from the broker. http://docs.oasis-open.org/amqp/core/v1.0/csprd01/amqp-core-types-v1.0-csprd01.html#toc

Variants

Described(Box<Value>, Box<Value>)

Tuple Fields of Described

0: Box<Value>1: Box<Value>
Null
Bool(bool)

Tuple Fields of Bool

0: bool
Ubyte(u8)

Tuple Fields of Ubyte

0: u8
Ushort(u16)

Tuple Fields of Ushort

0: u16
Uint(u32)

Tuple Fields of Uint

0: u32
Ulong(u64)

Tuple Fields of Ulong

0: u64
Byte(i8)

Tuple Fields of Byte

0: i8
Short(i16)

Tuple Fields of Short

0: i16
Int(i32)

Tuple Fields of Int

0: i32
Long(i64)

Tuple Fields of Long

0: i64
Char(char)

Tuple Fields of Char

0: char
Timestamp(u64)

Tuple Fields of Timestamp

0: u64
Binary(Vec<u8>)

Tuple Fields of Binary

0: Vec<u8>
Str(&'static str)

Tuple Fields of Str

0: &'static str
String(String)

Tuple Fields of String

0: String
Symbol(Vec<u8>)

Tuple Fields of Symbol

0: Vec<u8>
SymbolSlice(&'static [u8])

Tuple Fields of SymbolSlice

0: &'static [u8]
List(Vec<Value>)

Tuple Fields of List

0: Vec<Value>

Tuple Fields of Map

0: Vec<(Value, Value)>
Array(Vec<Value>)

Tuple Fields of Array

0: Vec<Value>

Implementations

Convert to a reference type. Not currently implemented for all types.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

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

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

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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

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

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.