INNER CODE UNIT · Rust
device_type
librespot-org/librespot · discovery/src/lib.rs:455
pub fn device_type(mut self, device_type: DeviceType) -> Self {
self.server_config.device_type = device_type;
self
}
/// Sets whether the device is a group. This affects the icon in Spotify clients. Default is `false`.
pub fn is_group(mut self, is_group: bool) -> Self {
self.server_config.is_group = is_group;
self
}
/// Adds an alias for this device. Multiple aliases can be added by calling this method multiple times.
pub fn add_alias(
mut self,
alias: impl Into<Cow<'static, str>>,
id: u32,
is_group: bool,
) -> Self {