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(u8, u32), 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
Void
Bool(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
F32(f32)
F64(f64)
Decimal(u8, u32)
ShortString(Cow<'a, str>)
LongString(Cow<'a, [u8]>)
Timestamp(u64)
List(List<'a>)
Table(Table<'a>)
Methods
impl<'a> Value<'a>
[src]
Trait Implementations
impl<'a> Debug for Value<'a>
[src]
impl<'a> PartialEq for Value<'a>
[src]
fn eq(&self, __arg_0: &Value<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for Value<'a>
[src]
fn clone(&self) -> Value<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> From<Table<'a>> for Value<'a>
[src]
impl From<SystemTime> for Value<'static>
[src]
fn from(time: SystemTime) -> Value<'static>
Performs the conversion.