Trait Value

Source
pub trait Value: Debug {
    // Required methods
    fn get_write_length(&self) -> i32;
    fn marshal(&self, bytebuffer: &mut ByteBuffer);
    fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8);
    fn to_value_string(&self) -> String;
    fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>
       where Self: Sized;
}

Required Methods§

Source

fn get_write_length(&self) -> i32

Source

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source

fn to_value_string(&self) -> String

Source

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl Value for &str

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(_bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<&str>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(_bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<bool>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<f64>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<i8>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<i16>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<i32>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<i64>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<u8>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<u16>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<u32>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<u64>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<BigDecimal>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>
where Self: Sized,

Source§

impl Value for Option<DateTime<Utc>>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>
where Self: Sized,

Source§

impl Value for Option<String>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, table_column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Option<Vec<u8>>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for bool

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for f64

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for i8

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for i16

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for i32

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for i64

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for u8

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for u16

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for u32

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for u64

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Source§

impl Value for String

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, table_column: &Column) -> Result<Self, VoltError>

Source§

impl Value for Vec<u8>

Source§

fn get_write_length(&self) -> i32

Source§

fn marshal(&self, bytebuffer: &mut ByteBuffer)

Source§

fn marshal_in_table(&self, bytebuffer: &mut ByteBuffer, _column_type: i8)

Source§

fn to_value_string(&self) -> String

Source§

fn from_bytes(bs: Vec<u8>, _column: &Column) -> Result<Self, VoltError>

Implementors§