Adds a constraint to the existing constraints. # Example ``` use spacetimedb_primitives::Constraints; let constraints = Constraints::unset().push(Constraints::indexed()); assert!(constraints.has_indexed()); ```
(self, other: Constraints)
| 213 | /// assert!(constraints.has_indexed()); |
| 214 | /// ``` |
| 215 | pub fn push(self, other: Constraints) -> Self { |
| 216 | Self::new(self.attr | other.attr) |
| 217 | } |
| 218 | |
| 219 | /// Add auto-increment constraint to the existing constraints. |
| 220 | /// Returns Err if the result would not be valid. |