pub struct ColumnBuilder<T> { /* private fields */ }Available on crate feature
backend-postgres only.Expand description
Builder for regular columns in JSON_TABLE
Implementationsยง
Sourceยงimpl<T> ColumnBuilder<T>
impl<T> ColumnBuilder<T>
Sourcepub fn format_json(self) -> Self
pub fn format_json(self) -> Self
Set FORMAT JSON
Sourcepub fn encoding_utf8(self) -> Self
pub fn encoding_utf8(self) -> Self
Set ENCODING UTF8 (requires FORMAT JSON)
Sourcepub fn wrapper<W>(self, wrapper: W) -> Selfwhere
W: Into<WrapperClause>,
pub fn wrapper<W>(self, wrapper: W) -> Selfwhere
W: Into<WrapperClause>,
Set WRAPPER clause
Sourcepub fn quotes<Q>(self, quotes: Q) -> Selfwhere
Q: Into<QuotesClause>,
pub fn quotes<Q>(self, quotes: Q) -> Selfwhere
Q: Into<QuotesClause>,
Set QUOTES clause
Sourcepub fn error_on_empty(self) -> Self
pub fn error_on_empty(self) -> Self
Convenience method for ERROR ON EMPTY
Sourcepub fn null_on_empty(self) -> Self
pub fn null_on_empty(self) -> Self
Convenience method for NULL ON EMPTY
Sourcepub fn empty_array_on_empty(self) -> Self
pub fn empty_array_on_empty(self) -> Self
Convenience method for EMPTY ARRAY ON EMPTY
Sourcepub fn empty_object_on_empty(self) -> Self
pub fn empty_object_on_empty(self) -> Self
Convenience method for EMPTY OBJECT ON EMPTY
Sourcepub fn default_on_empty<E>(self, expr: E) -> Self
pub fn default_on_empty<E>(self, expr: E) -> Self
Convenience method for DEFAULT <expr> ON EMPTY
Sourcepub fn error_on_error(self) -> Self
pub fn error_on_error(self) -> Self
Convenience method for ERROR ON ERROR
Sourcepub fn null_on_error(self) -> Self
pub fn null_on_error(self) -> Self
Convenience method for NULL ON ERROR
Sourcepub fn empty_array_on_error(self) -> Self
pub fn empty_array_on_error(self) -> Self
Convenience method for EMPTY ARRAY ON ERROR
Sourcepub fn empty_object_on_error(self) -> Self
pub fn empty_object_on_error(self) -> Self
Convenience method for EMPTY OBJECT ON ERROR
Sourcepub fn default_on_error<E>(self, expr: E) -> Self
pub fn default_on_error<E>(self, expr: E) -> Self
Convenience method for DEFAULT <expr> ON ERROR
Sourceยงimpl ColumnBuilder<Builder>
impl ColumnBuilder<Builder>
Sourcepub fn build_column(self) -> Builder
pub fn build_column(self) -> Builder
Finish building this column and return to the main builder
Sourceยงimpl ColumnBuilder<NestedPathBuilder>
impl ColumnBuilder<NestedPathBuilder>
Sourcepub fn build_column(self) -> NestedPathBuilder
pub fn build_column(self) -> NestedPathBuilder
Finish building this column and return to the nested path builder
Trait Implementationsยง
Sourceยงimpl<T: Clone> Clone for ColumnBuilder<T>
impl<T: Clone> Clone for ColumnBuilder<T>
Sourceยงfn clone(&self) -> ColumnBuilder<T>
fn clone(&self) -> ColumnBuilder<T>
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementationsยง
impl<T> Freeze for ColumnBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for ColumnBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for ColumnBuilder<T>where
T: Send,
impl<T> Sync for ColumnBuilder<T>where
T: Sync,
impl<T> Unpin for ColumnBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for ColumnBuilder<T>where
T: UnwindSafe,
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