pub struct Column { /* private fields */ }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>, ) -> Column
Sourcepub fn format_json(self) -> Column
pub fn format_json(self) -> Column
Set FORMAT JSON.
Sourcepub fn encoding_utf8(self) -> Column
pub fn encoding_utf8(self) -> Column
Set ENCODING UTF8.
Sourcepub fn wrapper(self, wrapper: impl Into<WrapperClause>) -> Column
pub fn wrapper(self, wrapper: impl Into<WrapperClause>) -> Column
Set WRAPPER.
Sourcepub fn quotes(self, quotes: impl Into<QuotesClause>) -> Column
pub fn quotes(self, quotes: impl Into<QuotesClause>) -> Column
Set QUOTES.
pub fn error_on_empty(self) -> Column
pub fn null_on_empty(self) -> Column
pub fn empty_array_on_empty(self) -> Column
pub fn empty_object_on_empty(self) -> Column
pub fn default_on_empty(self, expr: impl Into<Expr>) -> Column
pub fn error_on_error(self) -> Column
pub fn null_on_error(self) -> Column
pub fn empty_array_on_error(self) -> Column
pub fn empty_object_on_error(self) -> Column
pub fn default_on_error(self, expr: impl Into<Expr>) -> Column
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more