pub enum FieldValue<'a> {
I64(i64),
U64(u64),
F64(f64),
String(EscapedStr<'a>),
Boolean(bool),
}
Expand description
Allowed types of fields in a ParsedLine
. One of the types described in the line protocol
reference.
Variants§
Implementations§
Source§impl<'a> FieldValue<'a>
impl<'a> FieldValue<'a>
Sourcepub fn is_same_type(&self, other: &Self) -> bool
pub fn is_same_type(&self, other: &Self) -> bool
Returns true if self
and other
are of the same data type.
Trait Implementations§
Source§impl<'a> Clone for FieldValue<'a>
impl<'a> Clone for FieldValue<'a>
Source§fn clone(&self) -> FieldValue<'a>
fn clone(&self) -> FieldValue<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for FieldValue<'a>
impl<'a> Debug for FieldValue<'a>
Source§impl<'a> Display for FieldValue<'a>
Converts FieldValue
back to line protocol.
See the line protocol reference for more detail.
impl<'a> Display for FieldValue<'a>
Converts FieldValue
back to line protocol.
See the line protocol reference for more detail.
Source§impl<'a> PartialEq for FieldValue<'a>
impl<'a> PartialEq for FieldValue<'a>
impl<'a> StructuralPartialEq for FieldValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldValue<'a>
impl<'a> RefUnwindSafe for FieldValue<'a>
impl<'a> Send for FieldValue<'a>
impl<'a> Sync for FieldValue<'a>
impl<'a> Unpin for FieldValue<'a>
impl<'a> UnwindSafe for FieldValue<'a>
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