Updatable

Trait Updatable 

Source
pub trait Updatable {
    const UPDATE_COLUMNS: &'static [&'static str];

    // Required method
    fn update_values(&self) -> Vec<ParamValue>;
}
Expand description

Trait for types whose fields can be extracted for an UPDATE statement. This is implemented by the #[derive(Fetchable)] macro.

Required Associated Constants§

Source

const UPDATE_COLUMNS: &'static [&'static str]

The columns to be used in an UPDATE statement’s SET clause.

Required Methods§

Source

fn update_values(&self) -> Vec<ParamValue>

The values of the fields corresponding to UPDATE_COLUMNS.

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§