INNER CODE UNIT · Rust

name

librespot-org/librespot · discovery/src/lib.rs:449

    pub fn name(mut self, name: impl Into<Cow<'static, str>>) -> Self {
        self.server_config.name = name.into();
        self
    }

    /// Sets the device type which is visible as icon in other Spotify clients. Default is `Speaker`.
    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.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…