pub struct Column { /* private fields */ }Available on crate feature
backend-postgres only.Expand description
Column definition in a JSON_TABLE COLUMNS clause.
Implementationsยง
Sourceยงimpl Column
impl Column
pub fn new( name: impl Into<Cow<'static, str>>, column_type: impl Into<TypeRef>, ) -> Self
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.
Sourcepub fn wrapper(self, wrapper: impl Into<WrapperClause>) -> Self
pub fn wrapper(self, wrapper: impl Into<WrapperClause>) -> Self
Set WRAPPER.
Sourcepub fn quotes(self, quotes: impl Into<QuotesClause>) -> Self
pub fn quotes(self, quotes: impl Into<QuotesClause>) -> Self
Set QUOTES.
pub fn error_on_empty(self) -> Self
pub fn null_on_empty(self) -> Self
pub fn empty_array_on_empty(self) -> Self
pub fn empty_object_on_empty(self) -> Self
pub fn default_on_empty(self, expr: impl Into<Expr>) -> Self
pub fn error_on_error(self) -> Self
pub fn null_on_error(self) -> Self
pub fn empty_array_on_error(self) -> Self
pub fn empty_object_on_error(self) -> Self
pub fn default_on_error(self, expr: impl Into<Expr>) -> Self
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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