Line Protocol
This crate offers helper types and macros to build line protocol strings.
Usage
To generate line protocols, your type must implement [LineProtocol] trait.
You can also implement [LineProtocolTag] for custom types to be used as tags.
Automatic Implementation
You can easily derive [LineProtocol] and [LineProtocolTag] from the types.
use SystemTime;
use ;
Manual Implementation
For more complex situations, you may implement the trait using the builder syntax.
use SystemTime;
use ;
Helper Traits
Both automatic and manual implementations shown above require that your type implements helper traits.
- If your field is a line protocol tag, it needs to implement [
LineProtocolTag]. - If your field is a line protocol field, it needs to implement [
LineProtocolField]. - If your field is a line protocol timestamp, it needs to implement [
LineProtocolTimestamp].