librespot/connect/src/config.rs

23 lines
543 B
Rust
Raw Normal View History

2022-01-06 08:48:11 +00:00
use crate::core::config::DeviceType;
2022-01-05 20:15:19 +00:00
#[derive(Clone, Debug)]
pub struct ConnectConfig {
pub name: String,
pub device_type: DeviceType,
pub is_group: bool,
2022-01-05 20:15:19 +00:00
pub initial_volume: Option<u16>,
pub has_volume_ctrl: bool,
}
impl Default for ConnectConfig {
fn default() -> ConnectConfig {
ConnectConfig {
name: "Librespot".to_string(),
device_type: DeviceType::default(),
is_group: false,
2022-01-05 20:15:19 +00:00
initial_volume: Some(50),
has_volume_ctrl: true,
}
}
}