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, but a column that fails to
match falls through to db_type on the same entry rather than making the
whole entry a no-op (#189) – the two predicates degrade independently,
they don’t gate each other.
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
Auto 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