pub enum FormatType {
Json(Json),
Csv(Csv),
Kv(KeyValue),
Sql(SqlInsert),
Raw(Raw),
ProtoText(ProtoTxt),
}Variants§
Trait Implementations§
Source§impl DataFormat for FormatType
impl DataFormat for FormatType
Source§type Output = String
type Output = String
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_null(&self) -> Self::Output
fn format_null(&self) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_bool(&self, value: &bool) -> Self::Output
fn format_bool(&self, value: &bool) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_string(&self, value: &str) -> Self::Output
fn format_string(&self, value: &str) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_i64(&self, value: &i64) -> Self::Output
fn format_i64(&self, value: &i64) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_f64(&self, value: &f64) -> Self::Output
fn format_f64(&self, value: &f64) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_ip(&self, value: &IpAddr) -> Self::Output
fn format_ip(&self, value: &IpAddr) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_datetime(&self, value: &NaiveDateTime) -> Self::Output
fn format_datetime(&self, value: &NaiveDateTime) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_object(&self, value: &ObjectValue) -> Self::Output
fn format_object(&self, value: &ObjectValue) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_array(&self, value: &[FieldStorage]) -> Self::Output
fn format_array(&self, value: &[FieldStorage]) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_field(&self, field: &FieldStorage) -> Self::Output
fn format_field(&self, field: &FieldStorage) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§fn format_record(&self, record: &DataRecord) -> Self::Output
fn format_record(&self, record: &DataRecord) -> Self::Output
Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.