Struct tusk_rs::query::PostgresWrite
source · pub struct PostgresWrite {
pub fields: &'static [&'static str],
pub arguments: Vec<Box<dyn ToSql + Sync>>,
}
Expand description
A struct that contains data to write into a Postgres table.
Fields§
§fields: &'static [&'static str]
The fields that will be provided.
arguments: Vec<Box<dyn ToSql + Sync>>
The arguments to insert. This supports either a single row or multiple rows.
arguments.len() % fields.len() must always be 0.
Implementations§
source§impl PostgresWrite
impl PostgresWrite
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PostgresWrite
impl !RefUnwindSafe for PostgresWrite
impl !Send for PostgresWrite
impl Sync for PostgresWrite
impl Unpin for PostgresWrite
impl !UnwindSafe for PostgresWrite
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