librespot/connect/src/config.rs
2024-06-15 23:36:47 -04:00

22 lines
543 B
Rust

use crate::core::config::DeviceType;
#[derive(Clone, Debug)]
pub struct ConnectConfig {
pub name: String,
pub device_type: DeviceType,
pub is_group: bool,
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,
initial_volume: Some(50),
has_volume_ctrl: true,
}
}
}