INNER CODE UNIT · Rust
is_group
librespot-org/librespot · discovery/src/lib.rs:461
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 {
self.server_config.aliases.push(server::Alias {
name: alias.into(),
id,
is_group,
});
self