arrow_json

Trait JsonSerializable

Source
pub trait JsonSerializable: 'static {
    // Required method
    fn into_json_value(self) -> Option<Value>;
}
Expand description

Trait declaring any type that is serializable to JSON. This includes all primitive types (bool, i32, etc.).

Required Methods§

Source

fn into_json_value(self) -> Option<Value>

Converts self into json value if its possible

Implementations on Foreign Types§

Source§

impl JsonSerializable for bool

Source§

impl JsonSerializable for f32

Source§

impl JsonSerializable for f64

Source§

impl JsonSerializable for i8

Source§

impl JsonSerializable for i16

Source§

impl JsonSerializable for i32

Source§

impl JsonSerializable for i64

Source§

impl JsonSerializable for i128

Source§

impl JsonSerializable for u8

Source§

impl JsonSerializable for u16

Source§

impl JsonSerializable for u32

Source§

impl JsonSerializable for u64

Source§

impl JsonSerializable for f16

Implementors§