pub enum JsValue<'a> {
Null,
Number(f64),
String(Cow<'a, str>),
Buffer(Cow<'a, [u8]>),
Json(&'a str),
Date(Date<'a>),
Geometry(&'a [u8]),
}Variants§
Null
Number(f64)
String(Cow<'a, str>)
Buffer(Cow<'a, [u8]>)
Json(&'a str)
Date(Date<'a>)
Geometry(&'a [u8])
A GEOMETRY value (4-byte little-endian SRID, then WKB). mysql2 turns it
into point/array objects; like Json and Date that is host work.
Trait Implementations§
impl<'a> StructuralPartialEq for JsValue<'a>
Auto Trait Implementations§
impl<'a> Forget for JsValue<'a>
impl<'a> Freeze for JsValue<'a>
impl<'a> RefUnwindSafe for JsValue<'a>
impl<'a> Send for JsValue<'a>
impl<'a> Sync for JsValue<'a>
impl<'a> Unpin for JsValue<'a>
impl<'a> UnsafeUnpin for JsValue<'a>
impl<'a> UnwindSafe for JsValue<'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