fix: add missing UPower Device type
Device type can be found in the doucmentation https://upower.freedesktop.org/docs/Device.html#id-1.2.4.8.17
This commit is contained in:
parent
7aedc25e32
commit
e0d6a04d6e
1 changed files with 20 additions and 0 deletions
|
|
@ -29,6 +29,26 @@ pub enum BatteryType {
|
||||||
Keyboard = 6,
|
Keyboard = 6,
|
||||||
Pda = 7,
|
Pda = 7,
|
||||||
Phone = 8,
|
Phone = 8,
|
||||||
|
MediaPlayer = 9,
|
||||||
|
Tablet = 10,
|
||||||
|
Computer = 11,
|
||||||
|
GamingInput = 12,
|
||||||
|
Pen = 13,
|
||||||
|
Touchpad = 14,
|
||||||
|
Modem = 15,
|
||||||
|
Network = 16,
|
||||||
|
Headset = 17,
|
||||||
|
Speakers = 18,
|
||||||
|
Headphones = 19,
|
||||||
|
Video = 20,
|
||||||
|
OtherAudio = 21,
|
||||||
|
RemoteControl = 22,
|
||||||
|
Printer = 23,
|
||||||
|
Scanner = 24,
|
||||||
|
Camera = 25,
|
||||||
|
Wearable = 26,
|
||||||
|
Toy = 27,
|
||||||
|
BluetoothGeneric = 28,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Deserialize_repr, Serialize_repr, OwnedValue)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Deserialize_repr, Serialize_repr, OwnedValue)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue