We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9eb93e1 + c527f42 commit 275fdadCopy full SHA for 275fdad
Cargo.toml
@@ -1,7 +1,7 @@
1
[package]
2
edition = "2021"
3
name = "feature-probe-server-sdk"
4
-version = "1.2.10"
+version = "1.2.11"
5
license = "Apache-2.0"
6
authors = ["maintain@featureprobe.com"]
7
description = "FeatureProbe Server Side SDK for Rust"
src/evaluate.rs
@@ -135,6 +135,8 @@ pub struct EvalParams<'a> {
135
pub struct EvalDetail<T> {
136
pub value: Option<T>,
137
pub rule_index: Option<usize>,
138
+ pub track_access_events: Option<bool>,
139
+ pub last_modified: Option<u64>,
140
pub variation_index: Option<usize>,
141
pub version: Option<u64>,
142
pub reason: String,
@@ -200,6 +202,8 @@ impl Toggle {
200
202
variation_index: v.as_ref().map(|v| v.index),
201
203
value: v.map(|v| v.value),
204
version: Some(self.version),
205
+ track_access_events: self.track_access_events,
206
+ last_modified: self.last_modified,
207
reason: "disabled".to_owned(),
208
..Default::default()
209
};
@@ -212,6 +216,8 @@ impl Toggle {
212
216
value: Some(v.value),
213
217
variation_index: Some(v.index),
214
218
rule_index: Some(i),
219
220
215
221
222
reason: format!("rule {i}"),
223
0 commit comments