pub enum AnswerValue {
Bytes(Vec<u8>),
Text(String),
Json(String),
None,
}Expand description
The payload of a FieldAnswer.
Variants§
Bytes(Vec<u8>)
Exact bytes.
Text(String)
UTF-8 (possibly lossy) text.
Json(String)
A JSON document body.
None
No value.
Implementations§
Trait Implementations§
Source§impl Clone for AnswerValue
impl Clone for AnswerValue
Source§impl Debug for AnswerValue
impl Debug for AnswerValue
impl Eq for AnswerValue
Source§impl PartialEq for AnswerValue
impl PartialEq for AnswerValue
impl StructuralPartialEq for AnswerValue
Auto Trait Implementations§
impl Freeze for AnswerValue
impl RefUnwindSafe for AnswerValue
impl Send for AnswerValue
impl Sync for AnswerValue
impl Unpin for AnswerValue
impl UnsafeUnpin for AnswerValue
impl UnwindSafe for AnswerValue
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