MCPcopy Create free account
hub / github.com/FeatureProbe/server-sdk-rust / with

Method with

src/user.rs:26–29  ·  view source on GitHub ↗
(mut self, k: T, v: T)

Source from the content-addressed store, hash-verified

24 }
25
26 pub fn with<T: Into<String>>(mut self, k: T, v: T) -> Self {
27 self.attrs.insert(k.into(), v.into());
28 self
29 }
30
31 pub fn with_attrs(mut self, attrs: impl Iterator<Item = (String, String)>) -> Self {
32 self.attrs.extend(attrs);

Callers 15

criterion_benchmarkFunction · 0.80
test_feature_probe_boolFunction · 0.80
test_feature_probe_jsonFunction · 0.80
test_contractFunction · 0.80
test_user_withFunction · 0.80
test_segment_conditionFunction · 0.80
test_multi_conditionFunction · 0.80
test_disabled_toggleFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_feature_probe_boolFunction · 0.64
test_feature_probe_jsonFunction · 0.64
test_contractFunction · 0.64
test_user_withFunction · 0.64
test_segment_conditionFunction · 0.64
test_multi_conditionFunction · 0.64
test_disabled_toggleFunction · 0.64
test_prerequisite_toggleFunction · 0.64