pub struct SqlNamedArg {
pub name: String,
pub value: Box<Arg>,
}Expand description
对齐 go 的 sql.NamedArg:用于在 SQL 中以 @name 占位复用。
Fields§
§name: String§value: Box<Arg>Implementations§
Trait Implementations§
Source§impl Clone for SqlNamedArg
impl Clone for SqlNamedArg
Source§fn clone(&self) -> SqlNamedArg
fn clone(&self) -> SqlNamedArg
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 Debug for SqlNamedArg
impl Debug for SqlNamedArg
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.
Source§impl PartialEq for SqlNamedArg
impl PartialEq for SqlNamedArg
impl StructuralPartialEq for SqlNamedArg
Auto Trait Implementations§
impl Freeze for SqlNamedArg
impl !RefUnwindSafe for SqlNamedArg
impl !Send for SqlNamedArg
impl !Sync for SqlNamedArg
impl Unpin for SqlNamedArg
impl !UnwindSafe for SqlNamedArg
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