Enum serde_protobuf::value::Value[][src]

pub enum Value {
    Bool(bool),
    I32(i32),
    I64(i64),
    U32(u32),
    U64(u64),
    F32(f32),
    F64(f64),
    Bytes(Vec<u8>),
    String(String),
    Enum(i32),
    Message(Message),
}
Expand description

Any protobuf value.

Variants

Bool(bool)

Tuple Fields

0: bool

A boolean value.

I32(i32)

Tuple Fields

0: i32

A 32-bit signed integer.

I64(i64)

Tuple Fields

0: i64

A 64-bit signed integer.

U32(u32)

Tuple Fields

0: u32

A 32-bit unsigned integer.

U64(u64)

Tuple Fields

0: u64

A 64-bit unsigned integer.

F32(f32)

Tuple Fields

0: f32

A 32-bit floating point value.

F64(f64)

Tuple Fields

0: f64

A 64-bit floating point value.

Bytes(Vec<u8>)

Tuple Fields

0: Vec<u8>

A byte vector.

String(String)

Tuple Fields

0: String

A string.

Enum(i32)

Tuple Fields

0: i32

An enum value.

Message(Message)

Tuple Fields

A message.

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

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)

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.