use bitflags::bitflags;
use serde::{Deserialize, Serialize};
#[derive(PartialEq, Default, Debug, Clone, Copy, Deserialize, Serialize)]
pub struct SetupInfo {
pub configuration_interfaces: ConfigurationInterfaceFlags,
}
bitflags! {
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct ConfigurationInterfaceFlags: u32 {
const ETHERNET = 1 << 0;
const WIFI = 1 << 1;
const DEFAULT = Self::WIFI.bits();
}
}
impl Default for ConfigurationInterfaceFlags {
fn default() -> Self {
Self::DEFAULT
}
}
bitflags_serde_legacy::impl_traits!(ConfigurationInterfaceFlags);
#[derive(Debug, PartialEq, Copy, Clone)]
pub struct SetConfigurationInterfacesParams {
pub config_interfaces_flags: ConfigurationInterfaceFlags,
pub should_reboot: bool,
}