pub struct ConfigPatch {
pub version: Option<u8>,
pub connection: Option<ConnectionType>,
pub ip_method: Option<IpMethod>,
pub led_brightness: Option<u8>,
pub station_config: Option<WifiConfigPatch>,
pub ap_config: Option<WifiConfigPatch>,
pub dmx_ports: FnvIndexMap<u8, DmxPortPatch, MAX_DMX_PORTS>,
pub button_actions: FnvIndexMap<u8, ButtonAction, MAX_BUTTON_ACTIONS>,
}Expand description
Partial configuration (web: DeepPartial<Config>).
Every field is optional — including nested objects: credentials and DMX-port entries arrive leaf by leaf (the UI only sends changed leaves) and merge field-wise onto the stored values.
Fields§
§version: Option<u8>Optional schema version.
connection: Option<ConnectionType>Optional connection type.
ip_method: Option<IpMethod>Optional IP method.
led_brightness: Option<u8>Optional LED brightness.
station_config: Option<WifiConfigPatch>Optional station credentials (fields merge individually).
ap_config: Option<WifiConfigPatch>Optional access-point credentials (fields merge individually).
dmx_ports: FnvIndexMap<u8, DmxPortPatch, MAX_DMX_PORTS>Optional per-port overrides (merged per key and field).
Optional per-button overrides (merged per key).
Trait Implementations§
Source§impl Debug for ConfigPatch
impl Debug for ConfigPatch
Source§impl Default for ConfigPatch
impl Default for ConfigPatch
Source§fn default() -> ConfigPatch
fn default() -> ConfigPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigPatch
impl<'de> Deserialize<'de> for ConfigPatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigPatch
impl RefUnwindSafe for ConfigPatch
impl Send for ConfigPatch
impl Sync for ConfigPatch
impl Unpin for ConfigPatch
impl UnsafeUnpin for ConfigPatch
impl UnwindSafe for ConfigPatch
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more