Skip to main content

LineProtocolField

Trait LineProtocolField 

Source
pub trait LineProtocolField {
    // Required methods
    fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool;
    fn write_key_value_with_comma(&self, buffer: &mut String, key: &str);
}
Expand description

Defines a type that can be written as a line protocol field.

Required Methods§

Source

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Writes the key-value pair with a leading space.

Source

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Writes the key-value pair with a leading comma.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LineProtocolField for &str

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for String

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for bool

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for f32

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for f64

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for i16

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for i32

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for i64

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for str

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for u16

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl LineProtocolField for u32

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Source§

impl<V> LineProtocolField for Option<V>

Source§

fn write_key_value_with_space(&self, buffer: &mut String, key: &str) -> bool

Source§

fn write_key_value_with_comma(&self, buffer: &mut String, key: &str)

Implementors§