MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / push

Method push

crates/primitives/src/attr.rs:215–217  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

getMessageReactionsFunction · 0.45
AppFunction · 0.45
AppFunction · 0.45
MessageItemFunction · 0.45
groupReactionsFunction · 0.45
MessageItemFunction · 0.45
AppFunction · 0.45
index.tsFile · 0.45
AppFunction · 0.45
MessageItemFunction · 0.45
index.tsFile · 0.45
logActivityFunction · 0.45

Calls 1

newFunction · 0.50

Tested by 15

specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36
specFunction · 0.36