pub struct TypeLimits {
pub timestamp_digits: Option<Limit>,
pub time_digits: Option<Limit>,
pub longest_char: Option<Limit>,
pub char_counted_in: VarcharUnit,
pub longest_binary: Option<Limit>,
pub longest_varbinary: Option<Limit>,
}Expand description
What one engine’s columns hold, past its decimals and its varchars —
the answer to DialectCapabilities::type_limits.
None in a field means nothing stated: the engine stores the type as
text that holds any value, or the number has not been recorded. Either way
nothing is refused for it. Start from TypeLimits::NONE and fill in
what your engine has.
Fields§
§timestamp_digits: Option<Limit>The most digits of a second this dialect’s spelling of a timestamp,
timestamptz or datetime keeps.
time_digits: Option<Limit>The most digits of a second this dialect’s spelling of a time keeps.
longest_char: Option<Limit>The longest char(n), counted in Self::char_counted_in.
char_counted_in: VarcharUnitHow Self::longest_char is counted.
longest_binary: Option<Limit>The longest binary(n), in bytes.
longest_varbinary: Option<Limit>The longest varbinary(n), in bytes.
Implementations§
Source§impl TypeLimits
impl TypeLimits
Trait Implementations§
Source§impl Clone for TypeLimits
impl Clone for TypeLimits
impl Copy for TypeLimits
Source§impl Debug for TypeLimits
impl Debug for TypeLimits
impl Eq for TypeLimits
Source§impl PartialEq for TypeLimits
impl PartialEq for TypeLimits
impl StructuralPartialEq for TypeLimits
Auto Trait Implementations§
impl Forget for TypeLimits
impl Freeze for TypeLimits
impl Move for TypeLimits
impl RefUnwindSafe for TypeLimits
impl Send for TypeLimits
impl Sync for TypeLimits
impl Unpin for TypeLimits
impl UnsafeUnpin for TypeLimits
impl UnwindSafe for TypeLimits
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