Skip to main content

## library_set_settings

# Function library_set_settings

Source

    pub async fn library_set_settings(
        db: State<'_, DatabaseWrapper>,
        settings: LibrarySettings,
    ) -> Result<LibrarySettings, String>

Expand description

Replace the library preferences: apply them to every subsequent query and persist them.

Returns the sanitised value actually applied, so the picker shows what was stored rather than what it sent.

TRACES: UR-076 | DR-209