pub struct TypeOverride {
pub column: Option<String>,
pub db_type: Option<String>,
pub neutral_type: Option<String>,
}Expand description
A type override that replaces the inferred neutral type for a column or SQL type.
Overrides are evaluated in order: the first match wins. A column match
(e.g. "users.metadata") takes priority over a db_type match when both
fields are set on the same override entry.
Fields§
§column: Option<String>Fully-qualified column reference in "table.column" format.
db_type: Option<String>SQL type name (matched case-insensitively against the column’s neutral type).
neutral_type: Option<String>Target neutral type to substitute (e.g. "string", "json").
Implementations§
Trait Implementations§
Source§impl Clone for TypeOverride
impl Clone for TypeOverride
Source§fn clone(&self) -> TypeOverride
fn clone(&self) -> TypeOverride
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 Freeze for TypeOverride
impl RefUnwindSafe for TypeOverride
impl Send for TypeOverride
impl Sync for TypeOverride
impl Unpin for TypeOverride
impl UnsafeUnpin for TypeOverride
impl UnwindSafe for TypeOverride
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