pub enum Arg {
Value(SqlValue),
Valuer(Box<dyn SqlValuer>),
SqlNamed(SqlNamedArg),
Raw(Raw),
List {
args: Vec<Arg>,
is_tuple: bool,
},
Named {
name: String,
arg: Box<Arg>,
},
Builder(Box<dyn Builder>),
}Expand description
Dynamic argument types used by the Builder/Args system.
Variants§
Value(SqlValue)
Valuer(Box<dyn SqlValuer>)
SqlNamed(SqlNamedArg)
Raw(Raw)
List
Unified representation for lists/tuples.
Named
Named(name,arg) — only effective for ${name} in Build/BuildNamed.
Builder(Box<dyn Builder>)
Trait Implementations§
Source§impl From<OffsetDateTime> for Arg
impl From<OffsetDateTime> for Arg
Source§fn from(v: OffsetDateTime) -> Self
fn from(v: OffsetDateTime) -> Self
Converts to this type from the input type.
Source§impl From<SqlNamedArg> for Arg
impl From<SqlNamedArg> for Arg
Source§fn from(v: SqlNamedArg) -> Self
fn from(v: SqlNamedArg) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Arg
impl !RefUnwindSafe for Arg
impl !Send for Arg
impl !Sync for Arg
impl Unpin for Arg
impl !UnwindSafe for Arg
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