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)
A boolean value.
I32(i32)
A 32-bit signed integer.
I64(i64)
A 64-bit signed integer.
U32(u32)
A 32-bit unsigned integer.
U64(u64)
A 64-bit unsigned integer.
F32(f32)
A 32-bit floating point value.
F64(f64)
A 64-bit floating point value.
Bytes(Vec<u8>)
A byte vector.
String(String)
A string.
Enum(i32)
An enum value.
Message(Message)
A message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more