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
type Output = String
fn format_null(&self) -> Self::Output
fn format_bool(&self, value: &bool) -> Self::Output
fn format_string(&self, value: &str) -> Self::Output
fn format_i64(&self, value: &i64) -> Self::Output
fn format_f64(&self, value: &f64) -> Self::Output
fn format_ip(&self, value: &IpAddr) -> Self::Output
fn format_datetime(&self, value: &NaiveDateTime) -> Self::Output
fn format_object(&self, value: &ObjectValue) -> Self::Output
fn format_array(&self, value: &[DataField]) -> Self::Output
fn format_field(&self, field: &DataField) -> Self::Output
fn format_record(&self, record: &DataRecord) -> Self::Output
fn fmt_value(&self, value: &Value) -> Self::Output
Auto Trait Implementations§
impl Freeze for FormatType
impl RefUnwindSafe for FormatType
impl Send for FormatType
impl Sync for FormatType
impl Unpin for FormatType
impl UnwindSafe for FormatType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more