pub struct Misfit {
pub why: String,
pub kind: &'static str,
pub fits: String,
pub written_only_at: Option<u32>,
}Expand description
Why a column type does not fit an engine, in the words a refusal uses.
Fields§
§why: StringWhat the engine holds and what was asked, in a few plain words:
its timestamps keep at most 6 digits of a second, and this asks for 12.
kind: &'static strThe kind of type, as a refusal names it: timestamp, char.
fits: StringThe nearest type the engine holds, as a design declares it:
timestamp(6), char(255).
written_only_at: Option<u32>The one number of digits of a second a design writes the refused type
at, where the engine keeps fewer, or None.
A design writes a timestamptz and a datetime only at 6 digits. On
an engine whose timestamps keep fewer, no spelling of either fits, so
Self::fits names a timestamp at the engine’s own digits instead,
and this field says why: Some(6).
Trait Implementations§
impl Eq for Misfit
impl StructuralPartialEq for Misfit
Auto Trait Implementations§
impl Forget for Misfit
impl Freeze for Misfit
impl Move for Misfit
impl RefUnwindSafe for Misfit
impl Send for Misfit
impl Sync for Misfit
impl Unpin for Misfit
impl UnsafeUnpin for Misfit
impl UnwindSafe for Misfit
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