pub struct Args {
pub flavor: Flavor,
/* private fields */
}Expand description
Args store SQL-related arguments and index mappings.
Fields§
§flavor: FlavorDefault flavor used by compile.
Implementations§
Source§impl Args
impl Args
Sourcepub fn add(&mut self, arg: impl Into<Arg>) -> String
pub fn add(&mut self, arg: impl Into<Arg>) -> String
Add: push an argument and return the internal placeholder ($0/$1/...).
Sourcepub fn replace(&mut self, placeholder: &str, arg: impl Into<Arg>)
pub fn replace(&mut self, placeholder: &str, arg: impl Into<Arg>)
Replace: swap the value bound to a $n placeholder.
Sourcepub fn value(&self, placeholder: &str) -> Option<&Arg>
pub fn value(&self, placeholder: &str) -> Option<&Arg>
Value: parse a placeholder with $<n> prefix (lenient match).
placeholdermay have suffix (e.g."$0xxx"); as long as it starts with$<digits>it will be parsed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Args
impl !RefUnwindSafe for Args
impl !Send for Args
impl !Sync for Args
impl Unpin for Args
impl !UnwindSafe for Args
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