Enum messagepack_rs::value::Value[][src]

pub enum Value {
Show 18 variants Nil, Bool(bool), Float32(f32), Float64(f64), UInt8(u8), UInt16(u16), UInt32(u32), UInt64(u64), Int8(i8), Int16(i16), Int32(i32), Int64(i64), Binary(Binary), String(String), Array(Vec<Self>), Map(BTreeMap<String, Self>), Extension(Extension), Timestamp(DateTime<Utc>),
}

Variants

Nil

Bool(bool)

Tuple Fields

0: bool

Float32(f32)

Tuple Fields

0: f32

Float64(f64)

Tuple Fields

0: f64

UInt8(u8)

Tuple Fields

0: u8

UInt16(u16)

Tuple Fields

0: u16

UInt32(u32)

Tuple Fields

0: u32

UInt64(u64)

Tuple Fields

0: u64

Int8(i8)

Tuple Fields

0: i8

Int16(i16)

Tuple Fields

0: i16

Int32(i32)

Tuple Fields

0: i32

Int64(i64)

Tuple Fields

0: i64

Binary(Binary)

Tuple Fields

0: Binary

String(String)

Tuple Fields

0: String

Array(Vec<Self>)

Tuple Fields

0: Vec<Self>

Map(BTreeMap<String, Self>)

Tuple Fields

0: BTreeMap<String, Self>

Extension(Extension)

Tuple Fields

Timestamp(DateTime<Utc>)

Tuple Fields

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.

Performs the conversion.

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

This method tests for !=.

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.