Buttplug sex toy control library

chore: Change feature "ignore" to "disabled"

+5 -4
+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 - #[serde(rename = "ignore", default, skip_serializing_if = "Option::is_none")] 169 - ignore: Option<bool>, 168 + #[serde(rename = "disabled", default, skip_serializing_if = "Option::is_none")] 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 - ignore: Option<bool>, 176 + disabled: Option<bool>, 177 177 ) -> Self { 178 178 Self { 179 179 step_limit, 180 180 reverse_position, 181 - ignore, 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 + .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 }),