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
Builder/Args 体系使用的动态参数类型。
Variants§
Value(SqlValue)
Valuer(Box<dyn SqlValuer>)
SqlNamed(SqlNamedArg)
Raw(Raw)
List
List/Tuple 的统一表示。
Named
Named(name,arg) —— 只在 Build/BuildNamed 的 ${name} 路径上生效。
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