Enum prost_types::value::Kind [−][src]
pub enum Kind {
NullValue(i32),
NumberValue(f64),
StringValue(String),
BoolValue(bool),
StructValue(Struct),
ListValue(ListValue),
}The kind of value.
Variants
NullValue(i32)Represents a null value.
NumberValue(f64)Represents a double value.
StringValue(String)Represents a string value.
BoolValue(bool)Represents a boolean value.
StructValue(Struct)Represents a structured value.
ListValue(ListValue)Represents a repeated Value.
Methods
impl Kind[src]
impl Kindpub fn encode<B>(&self, buf: &mut B) where
B: BufMut, [src]
pub fn encode<B>(&self, buf: &mut B) where
B: BufMut, pub fn merge<B>(
field: &mut Option<Kind>,
tag: u32,
wire_type: WireType,
buf: &mut B
) -> Result<(), DecodeError> where
B: Buf, [src]
pub fn merge<B>(
field: &mut Option<Kind>,
tag: u32,
wire_type: WireType,
buf: &mut B
) -> Result<(), DecodeError> where
B: Buf, pub fn encoded_len(&self) -> usize[src]
pub fn encoded_len(&self) -> usizeTrait Implementations
impl Debug for Kind[src]
impl Debug for Kindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Kind[src]
impl Clone for Kindfn clone(&self) -> Kind[src]
fn clone(&self) -> KindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Kind[src]
impl PartialEq for Kind