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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: 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
👎Deprecated since 0.2.0: Use ValueFormatter and RecordFormatter instead. This trait will be removed in the next major version.
Source§impl From<&TextFmt> for FormatType
impl From<&TextFmt> for FormatType
Source§impl RecordFormatter for FormatType
impl RecordFormatter for FormatType
Source§fn fmt_record(&self, record: &DataRecord) -> String
fn fmt_record(&self, record: &DataRecord) -> String
格式化整条记录 Read more
Source§impl ValueFormatter for FormatType
impl ValueFormatter for FormatType
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