Struct repr::adt::jsonb::JsonbDatum [−][src]
struct JsonbDatum<'a>(Datum<'a>);
Expand description
A wrapper for Datum
that implements Serialize
.
This is a separate type from JsonbRef
because the Serialize
implementation is only valid for use with serde_json. If we implemented it
on JsonbRef
directly, it would be possible to serialize a JsonbRef
into
any serde format, like YAML, but that transformation would not be tested
and would likely be invalid.
Tuple Fields
0: Datum<'a>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for JsonbDatum<'a>
impl<'a> Send for JsonbDatum<'a>
impl<'a> Sync for JsonbDatum<'a>
impl<'a> Unpin for JsonbDatum<'a>
impl<'a> UnwindSafe for JsonbDatum<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more