pub enum FieldValue {
String(String),
Binary(Vec<u8>),
}Available on crate feature
std only.Expand description
Field value (parsed data)
Variants§
Implementations§
Source§impl FieldValue
impl FieldValue
Sourcepub fn from_string<S: Into<String>>(s: S) -> Self
pub fn from_string<S: Into<String>>(s: S) -> Self
Create from string
Sourcepub fn from_binary(data: Vec<u8>) -> Self
pub fn from_binary(data: Vec<u8>) -> Self
Create from binary data
Sourcepub fn to_string_lossy(&self) -> String
pub fn to_string_lossy(&self) -> String
Convert to string (lossy for binary)
Trait Implementations§
Source§impl Clone for FieldValue
impl Clone for FieldValue
Source§fn clone(&self) -> FieldValue
fn clone(&self) -> FieldValue
Returns a duplicate 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 Debug for FieldValue
impl Debug for FieldValue
Source§impl Display for FieldValue
impl Display for FieldValue
Source§impl PartialEq for FieldValue
impl PartialEq for FieldValue
impl Eq for FieldValue
impl StructuralPartialEq for FieldValue
Auto Trait Implementations§
impl Freeze for FieldValue
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnsafeUnpin for FieldValue
impl UnwindSafe for FieldValue
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