pub struct UnitValue<T: FromSql + ToSql>(pub T);Expand description
A single column row
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: FromSql + ToSql> Row for UnitValue<T>
impl<T: FromSql + ToSql> Row for UnitValue<T>
Source§const COLUMN_COUNT: Option<usize>
const COLUMN_COUNT: Option<usize>
If
Some, serialize_row and deserialize_row MUST return this number of columnsSource§fn column_names() -> Option<Vec<Cow<'static, str>>>
fn column_names() -> Option<Vec<Cow<'static, str>>>
If
Some, serialize_row and deserialize_row MUST have these namesAuto Trait Implementations§
impl<T> Freeze for UnitValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnitValue<T>where
T: RefUnwindSafe,
impl<T> Send for UnitValue<T>where
T: Send,
impl<T> Sync for UnitValue<T>where
T: Sync,
impl<T> Unpin for UnitValue<T>where
T: Unpin,
impl<T> UnwindSafe for UnitValue<T>where
T: UnwindSafe,
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