Skip to main content

UpdateData

Trait UpdateData 

Source
pub trait UpdateData: Send + Sync {
    // Required methods
    fn into_fields(self) -> HashMap<String, FieldValue>;
    fn model_name() -> &'static str;
}
Expand description

Trait for types that can be used as update data.

Required Methods§

Source

fn into_fields(self) -> HashMap<String, FieldValue>

Get the field values as a map (only set fields).

Source

fn model_name() -> &'static str

Get the model name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§