1
Fork 0
mirror of https://github.com/RGBCube/watt synced 2025-08-02 19:07:47 +00:00

power_supply: add derives to PowerSupply

This commit is contained in:
RGBCube 2025-05-19 18:07:35 +03:00
parent 5559d08f3e
commit c69aba87b6
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -53,6 +53,7 @@ const POWER_SUPPLY_THRESHOLD_CONFIGS: &[PowerSupplyThresholdConfig] = &[
];
/// Represents a power supply that supports charge threshold control.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PowerSupply {
pub name: String,
pub path: PathBuf,