Derive Macro diesel::query_builder::AsChangeset[][src]

    // Attributes available to this derive:

Implements AsChangeset

To implement AsChangeset this derive needs to know the corresponding table type. By default it uses the snake_case type name with an added s from the current scope. It is possible to change this default by using #[table_name = "something"].

If a field name of your struct differs from the name of the corresponding column, you can annotate the field with #[column_name = "some_column_name"].

By default, any Option fields on the struct are skipped if their value is None. If you would like to assign NULL to the field instead, you can annotate your struct with #[changeset_options(treat_none_as_null = "true")].


Optional container attributes

Optional field attributes