Enum avro::Value
[−]
[src]
pub enum Value<'a, 'b> {
Null,
Boolean(bool),
Int(i32),
Long(i64),
Float(f32),
Double(f64),
Bytes(Cow<'b, [u8]>),
String(Cow<'b, str>),
Record(Rc<RecordSchema<'a>>, Vec<Value<'a, 'b>>),
Enum(Rc<EnumSchema<'a>>, i32),
Array(Vec<Value<'a, 'b>>),
Map(HashMap<Cow<'b, str>, Value<'a, 'b>>),
Fixed(Rc<FixedSchema<'a>>, Cow<'b, [u8]>),
}Variants
NullBoolean(bool)Int(i32)Long(i64)Float(f32)Double(f64)Bytes(Cow<'b, [u8]>)String(Cow<'b, str>)Record(Rc<RecordSchema<'a>>, Vec<Value<'a, 'b>>)Enum(Rc<EnumSchema<'a>>, i32)Array(Vec<Value<'a, 'b>>)Map(HashMap<Cow<'b, str>, Value<'a, 'b>>)Fixed(Rc<FixedSchema<'a>>, Cow<'b, [u8]>)Methods
impl<'a, 'b> Value<'a, 'b>[src]
fn unwrap_boolean(&self) -> bool
fn unwrap_int(&self) -> i32
fn unwrap_long(&self) -> i64
fn unwrap_float(&self) -> f32
fn unwrap_double(&self) -> f64
fn unwrap_bytes(&self) -> &Cow<'b, [u8]>
fn unwrap_string(&self) -> &Cow<'b, str>
fn unwrap_record(&self) -> (&Rc<RecordSchema<'a>>, &Vec<Value<'a, 'b>>)
fn unwrap_enum(&self) -> (&Rc<EnumSchema<'a>>, i32)
fn unwrap_array(&self) -> &Vec<Value<'a, 'b>>
fn unwrap_map(&self) -> &HashMap<Cow<'b, str>, Value<'a, 'b>>
fn unwrap_fixed(&self) -> (&Rc<FixedSchema<'a>>, &Cow<'b, [u8]>)
Trait Implementations
impl<'a, 'b> Debug for Value<'a, 'b>[src]
impl<'a, 'b> Clone for Value<'a, 'b>[src]
fn clone(&self) -> Value<'a, 'b>
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