mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
22 lines
543 B
Rust
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,
|
|
}
|
|
}
|
|
}
|