pub enum JsonbKind {
Null,
String,
Numeric,
Boolean,
Array,
Object,
}Expand description
The kind of a top-level jsonb value, as cannotCastJsonbValue names it when a cast to a
scalar type refuses it.
use sql_values::postgres::JsonbKind;
assert_eq!(JsonbKind::Numeric.to_string(), "numeric");Variants§
Null
null.
String
A string.
Numeric
A number.
Boolean
true or false.
Array
An array.
Object
An object.
Trait Implementations§
impl Copy for JsonbKind
impl Eq for JsonbKind
impl StructuralPartialEq for JsonbKind
Auto Trait Implementations§
impl Forget for JsonbKind
impl Freeze for JsonbKind
impl Move for JsonbKind
impl RefUnwindSafe for JsonbKind
impl Send for JsonbKind
impl Sync for JsonbKind
impl Unpin for JsonbKind
impl UnsafeUnpin for JsonbKind
impl UnwindSafe for JsonbKind
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