Enum butane::custom::SqlValRefCustom [−][src]
pub enum SqlValRefCustom<'a> { PgToSql { ty: Type, tosql: &'a (dyn ToSql + 'a + Sync), }, PgBytes { ty: Type, data: &'a [u8], }, }
Expand description
For use with SqlValRef::Custom
Variants
Used with Postgres, but suitable only for input (e.g. input to a query), not suitable for parsing in a FromSql implementation.
The Pg backend will return SqlValRef instances of this
type. May also be used by ToSql
implementations, but may be less convenient than PgToSql
for that purpose.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SqlValRefCustom<'a>
impl<'a> Send for SqlValRefCustom<'a>
impl<'a> Sync for SqlValRefCustom<'a>
impl<'a> Unpin for SqlValRefCustom<'a>
impl<'a> !UnwindSafe for SqlValRefCustom<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V