pub enum JsonWrapperBehavior {
Unspecified,
Without,
Unconditional,
Conditional,
}Expand description
The SQL/JSON WRAPPER behaviour of JSON_QUERY (SQL:2016).
The optional ARRAY keyword and the UNCONDITIONAL default are semantically
inert (PostgreSQL normalizes them away), so this closed enum folds
WITH [UNCONDITIONAL] [ARRAY] WRAPPER onto Unconditional
and WITHOUT [ARRAY] WRAPPER onto Without — the render
re-parses to the same value.
Variants§
Unspecified
No wrapper clause written.
Without
WITHOUT [ARRAY] WRAPPER.
Unconditional
WITH [UNCONDITIONAL] [ARRAY] WRAPPER.
Conditional
WITH CONDITIONAL [ARRAY] WRAPPER.
Trait Implementations§
Source§impl Clone for JsonWrapperBehavior
impl Clone for JsonWrapperBehavior
Source§fn clone(&self) -> JsonWrapperBehavior
fn clone(&self) -> JsonWrapperBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JsonWrapperBehavior
Source§impl Debug for JsonWrapperBehavior
impl Debug for JsonWrapperBehavior
Source§impl<'de> Deserialize<'de> for JsonWrapperBehavior
impl<'de> Deserialize<'de> for JsonWrapperBehavior
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JsonWrapperBehavior
Source§impl Hash for JsonWrapperBehavior
impl Hash for JsonWrapperBehavior
Source§impl PartialEq for JsonWrapperBehavior
impl PartialEq for JsonWrapperBehavior
Source§impl Serialize for JsonWrapperBehavior
impl Serialize for JsonWrapperBehavior
impl StructuralPartialEq for JsonWrapperBehavior
Auto Trait Implementations§
impl Freeze for JsonWrapperBehavior
impl RefUnwindSafe for JsonWrapperBehavior
impl Send for JsonWrapperBehavior
impl Sync for JsonWrapperBehavior
impl Unpin for JsonWrapperBehavior
impl UnsafeUnpin for JsonWrapperBehavior
impl UnwindSafe for JsonWrapperBehavior
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