1 2 3 4 5 6 7 8 9 10 11
#[derive(Debug, Clone)] pub struct Brightness { pub method: String, pub percentage: u8, } impl Brightness { pub fn new(method: String, percentage: u8) -> Self { Self { method, percentage } } }