Set

Set attribute represents a update query set statement.

#[set(option)]

Option can take following values:

  • assign or :=
  • concat or ++ (only for string)
  • push or += (only for vec)

Usage

    struct UpdateUser {
        #[set(option="assign")]
        pub name: String,
        ...
    }