Skip to main content

Update

Trait Update 

Source
pub trait Update<'a, Table, D: Driver>: Sized {
    // Required method
    fn updates(
        self,
        args_list: DriverArguments<'a, D>,
        current_query: &mut String,
        parameter_n: &mut usize,
    ) -> Result<DriverArguments<'a, D>>;
}
Expand description

Update payload mapping for a table.

Prefer implementing this trait via the Update derive macro; manual implementations may need updates across releases.

Required Methods§

Source

fn updates( self, args_list: DriverArguments<'a, D>, current_query: &mut String, parameter_n: &mut usize, ) -> Result<DriverArguments<'a, D>>

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§