pub trait Arguments<'q>:
Send
+ Sized
+ Default {
type Database: Database;
// Required methods
fn reserve(&mut self, additional: usize, size: usize);
fn add<T>(&mut self, value: T)
where T: 'q + Send + Encode<'q, Self::Database> + Type<Self::Database>;
// Provided method
fn format_placeholder<W: Write>(&self, writer: &mut W) -> Result { ... }
}Expand description
A tuple of arguments to be sent to the database.
Required Associated Types§
Required Methods§
Provided Methods§
fn format_placeholder<W: Write>(&self, writer: &mut W) -> Result
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl<'q> Arguments<'q> for AnyArguments<'q>
Available on (crate features postgres or mysql or mssql or sqlite or odbc) and crate feature any only.
impl<'q> Arguments<'q> for AnyArguments<'q>
Available on (crate features
postgres or mysql or mssql or sqlite or odbc) and crate feature any only.Source§impl<'q> Arguments<'q> for MssqlArguments
Available on crate feature mssql only.
impl<'q> Arguments<'q> for MssqlArguments
Available on crate feature
mssql only.Source§impl<'q> Arguments<'q> for MySqlArguments
Available on crate feature mysql only.
impl<'q> Arguments<'q> for MySqlArguments
Available on crate feature
mysql only.Source§impl<'q> Arguments<'q> for OdbcArguments
Available on crate feature odbc only.
impl<'q> Arguments<'q> for OdbcArguments
Available on crate feature
odbc only.Source§impl<'q> Arguments<'q> for PgArguments
Available on crate feature postgres only.
impl<'q> Arguments<'q> for PgArguments
Available on crate feature
postgres only.