#[non_exhaustive]pub enum ToSqlOutput<'a> {
Borrowed(ValueRef<'a>),
Owned(Value),
}Expand description
ToSqlOutput represents the possible output types for implementers of the
ToSql trait.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Borrowed(ValueRef<'a>)
A borrowed SQLite-representable value.
Owned(Value)
An owned SQLite-representable value.
Trait Implementations§
Source§impl AsSqlTy for ToSqlOutput<'_>
impl AsSqlTy for ToSqlOutput<'_>
Source§type Borrowed<'p> = ToSqlOutput<'p>
type Borrowed<'p> = ToSqlOutput<'p>
The borrowed counterpart of this type (may be
Self, e.g.
for trivially-copiable types such as integers and floats).
This is used e.g. for constructing the Table::PrimaryKey
associated type, which in turn serves as the input type of
helper queries such as SelectByKey and DeleteByKey.Source§fn format_check_constraint(
column: &dyn Display,
formatter: &mut Formatter<'_>,
) -> Result
fn format_check_constraint( column: &dyn Display, formatter: &mut Formatter<'_>, ) -> Result
If the domain of this type requires a CHECK constraint,
this method should write out the relevant criteria. The
column name will be given as the
column argument. If
the body of this function doesn’t write anything to the
formatter, no CHECK constraint is going to be emitted. Read moreSource§impl<'a> Clone for ToSqlOutput<'a>
impl<'a> Clone for ToSqlOutput<'a>
Source§fn clone(&self) -> ToSqlOutput<'a>
fn clone(&self) -> ToSqlOutput<'a>
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 moreSource§impl<'a> Debug for ToSqlOutput<'a>
impl<'a> Debug for ToSqlOutput<'a>
Source§impl<'a, T> From<&'a T> for ToSqlOutput<'a>
impl<'a, T> From<&'a T> for ToSqlOutput<'a>
Source§fn from(t: &'a T) -> ToSqlOutput<'a>
fn from(t: &'a T) -> ToSqlOutput<'a>
Converts to this type from the input type.
Source§impl From<Null> for ToSqlOutput<'_>
impl From<Null> for ToSqlOutput<'_>
Source§fn from(t: Null) -> ToSqlOutput<'_>
fn from(t: Null) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<String> for ToSqlOutput<'_>
impl From<String> for ToSqlOutput<'_>
Source§fn from(t: String) -> ToSqlOutput<'_>
fn from(t: String) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<bool> for ToSqlOutput<'_>
impl From<bool> for ToSqlOutput<'_>
Source§fn from(t: bool) -> ToSqlOutput<'_>
fn from(t: bool) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<f32> for ToSqlOutput<'_>
impl From<f32> for ToSqlOutput<'_>
Source§fn from(t: f32) -> ToSqlOutput<'_>
fn from(t: f32) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<f64> for ToSqlOutput<'_>
impl From<f64> for ToSqlOutput<'_>
Source§fn from(t: f64) -> ToSqlOutput<'_>
fn from(t: f64) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<i16> for ToSqlOutput<'_>
impl From<i16> for ToSqlOutput<'_>
Source§fn from(t: i16) -> ToSqlOutput<'_>
fn from(t: i16) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<i32> for ToSqlOutput<'_>
impl From<i32> for ToSqlOutput<'_>
Source§fn from(t: i32) -> ToSqlOutput<'_>
fn from(t: i32) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<i64> for ToSqlOutput<'_>
impl From<i64> for ToSqlOutput<'_>
Source§fn from(t: i64) -> ToSqlOutput<'_>
fn from(t: i64) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<i8> for ToSqlOutput<'_>
impl From<i8> for ToSqlOutput<'_>
Source§fn from(t: i8) -> ToSqlOutput<'_>
fn from(t: i8) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<isize> for ToSqlOutput<'_>
impl From<isize> for ToSqlOutput<'_>
Source§fn from(t: isize) -> ToSqlOutput<'_>
fn from(t: isize) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<u16> for ToSqlOutput<'_>
impl From<u16> for ToSqlOutput<'_>
Source§fn from(t: u16) -> ToSqlOutput<'_>
fn from(t: u16) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<u32> for ToSqlOutput<'_>
impl From<u32> for ToSqlOutput<'_>
Source§fn from(t: u32) -> ToSqlOutput<'_>
fn from(t: u32) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl From<u8> for ToSqlOutput<'_>
impl From<u8> for ToSqlOutput<'_>
Source§fn from(t: u8) -> ToSqlOutput<'_>
fn from(t: u8) -> ToSqlOutput<'_>
Converts to this type from the input type.
Source§impl Param for ToSqlOutput<'_>
impl Param for ToSqlOutput<'_>
Source§impl<'a> PartialEq for ToSqlOutput<'a>
impl<'a> PartialEq for ToSqlOutput<'a>
Source§impl ResultRecord for ToSqlOutput<'_>
impl ResultRecord for ToSqlOutput<'_>
Source§impl ToSql for ToSqlOutput<'_>
impl ToSql for ToSqlOutput<'_>
impl<'a> StructuralPartialEq for ToSqlOutput<'a>
Auto Trait Implementations§
impl<'a> Freeze for ToSqlOutput<'a>
impl<'a> RefUnwindSafe for ToSqlOutput<'a>
impl<'a> Send for ToSqlOutput<'a>
impl<'a> Sync for ToSqlOutput<'a>
impl<'a> Unpin for ToSqlOutput<'a>
impl<'a> UnwindSafe for ToSqlOutput<'a>
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