pub struct JsonTableNamedColumn {
pub name: Ident,
pub type: DataType,
pub path: Value,
pub exists: bool,
pub on_empty: Option<JsonTableColumnErrorHandling>,
pub on_error: Option<JsonTableColumnErrorHandling>,
}
Expand description
A single column definition in MySQL’s JSON_TABLE
table valued function.
See https://mariadb.com/kb/en/json_table/#path-columns
value VARCHAR(20) PATH '$'
Fields§
§name: Ident
The name of the column to be extracted.
type: DataType
The type of the column to be extracted.
path: Value
The path to the column to be extracted. Must be a literal string.
exists: bool
true if the column is a boolean set to true if the given path exists
on_empty: Option<JsonTableColumnErrorHandling>
The empty handling clause of the column
on_error: Option<JsonTableColumnErrorHandling>
The error handling clause of the column
Trait Implementations§
Source§impl Clone for JsonTableNamedColumn
impl Clone for JsonTableNamedColumn
Source§fn clone(&self) -> JsonTableNamedColumn
fn clone(&self) -> JsonTableNamedColumn
Returns a copy 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 moreSource§impl Debug for JsonTableNamedColumn
impl Debug for JsonTableNamedColumn
Source§impl<'de> Deserialize<'de> for JsonTableNamedColumn
impl<'de> Deserialize<'de> for JsonTableNamedColumn
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
Source§impl Display for JsonTableNamedColumn
impl Display for JsonTableNamedColumn
Source§impl Hash for JsonTableNamedColumn
impl Hash for JsonTableNamedColumn
Source§impl Ord for JsonTableNamedColumn
impl Ord for JsonTableNamedColumn
Source§fn cmp(&self, other: &JsonTableNamedColumn) -> Ordering
fn cmp(&self, other: &JsonTableNamedColumn) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for JsonTableNamedColumn
impl PartialEq for JsonTableNamedColumn
Source§impl PartialOrd for JsonTableNamedColumn
impl PartialOrd for JsonTableNamedColumn
Source§impl Serialize for JsonTableNamedColumn
impl Serialize for JsonTableNamedColumn
Source§impl Visit for JsonTableNamedColumn
impl Visit for JsonTableNamedColumn
Source§impl VisitMut for JsonTableNamedColumn
impl VisitMut for JsonTableNamedColumn
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for JsonTableNamedColumn
impl StructuralPartialEq for JsonTableNamedColumn
Auto Trait Implementations§
impl Freeze for JsonTableNamedColumn
impl RefUnwindSafe for JsonTableNamedColumn
impl Send for JsonTableNamedColumn
impl Sync for JsonTableNamedColumn
impl Unpin for JsonTableNamedColumn
impl UnwindSafe for JsonTableNamedColumn
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