qobuz-api 4.0.0

A Rust client library for the Qobuz music streaming API
//! Debug redaction for the central API service.

use std::fmt::{Debug, Formatter, Result};

use crate::api::service_state::QobuzApiService;

impl Debug for QobuzApiService {
    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
        f.debug_struct("QobuzApiService")
            .field("base_url", &self.base_url)
            .field("app_id", &self.app_id)
            .field("app_secret", &"<redacted>")
            .field(
                "user_auth_token",
                &self.user_auth_token.as_deref().map(|_| "<redacted>"),
            )
            .field("credentials_refreshed", &self.credentials_refreshed)
            .finish_non_exhaustive()
    }
}