tangled
alpha
login
or
join now
buttplug.io
/
buttplug
20
fork
atom
Buttplug sex toy control library
20
fork
atom
overview
issues
pulls
pipelines
chore: Change feature "ignore" to "disabled"
qdot.tngl.sh
6 months ago
893305bb
2009e3b9
+5
-4
1 changed file
expand all
collapse all
unified
split
crates
buttplug_server_device_config
src
device_feature.rs
+5
-4
crates/buttplug_server_device_config/src/device_feature.rs
···
165
165
)]
166
166
reverse_position: Option<bool>,
167
167
#[getset(get = "pub")]
168
168
-
#[serde(rename = "ignore", default, skip_serializing_if = "Option::is_none")]
169
169
-
ignore: Option<bool>,
168
168
+
#[serde(rename = "disabled", default, skip_serializing_if = "Option::is_none")]
169
169
+
disabled: Option<bool>,
170
170
}
171
171
172
172
impl ServerUserDeviceFeatureOutput {
173
173
pub fn new(
174
174
step_limit: Option<RangeInclusive<u32>>,
175
175
reverse_position: Option<bool>,
176
176
-
ignore: Option<bool>,
176
176
+
disabled: Option<bool>,
177
177
) -> Self {
178
178
Self {
179
179
step_limit,
180
180
reverse_position,
181
181
-
ignore,
181
181
+
disabled,
182
182
}
183
183
}
184
184
}
···
280
280
self.feature_type(),
281
281
&self.output.clone().map(|x| {
282
282
x.iter()
283
283
+
.filter(|(_, a)| !a.user_feature().disabled().as_ref().unwrap_or(&false))
283
284
.map(|(t, a)| (*t, DeviceFeatureOutput::from(a.clone())))
284
285
.collect()
285
286
}),