Enum amqp0_primitives::field::Value [] [src]

pub enum Value<'a> {
    Void,
    Bool(bool),
    I8(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    U8(u8),
    U16(u16),
    U32(u32),
    U64(u64),
    F32(f32),
    F64(f64),
    Decimal(u8u32),
    ShortString(Cow<'a, str>),
    LongString(Cow<'a, [u8]>),
    Timestamp(u64),
    List(List<'a>),
    Table(Table<'a>),
}

Basic "field" that essentially represents dynamic-types in the AMQP protocol.

Variants

Methods

impl<'a> Value<'a>
[src]

Trait Implementations

impl<'a> Debug for Value<'a>
[src]

Formats the value using the given formatter.

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

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

This method tests for !=.

impl<'a> Clone for Value<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> From<Table<'a>> for Value<'a>
[src]

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

impl From<()> for Value<'static>
[src]

Performs the conversion.

impl<'a> From<List<'a>> for Value<'a>
[src]

Performs the conversion.

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

Performs the conversion.

impl<'a> From<&'a str> for Value<'a>
[src]

Performs the conversion.

impl<'a> From<Cow<'a, str>> for Value<'a>
[src]

Performs the conversion.