dsh_sdk 0.8.1

SDK for KPN Data Services Hub
Documentation
#[cfg(feature = "protocol-token")]
/// Error type for the protocol tokens
#[derive(Debug, thiserror::Error)]
pub enum ProtocolTokenError {
    #[error("Error calling: {url}, status code: {status_code}, error body: {error_body}")]
    DshCall {
        url: String,
        status_code: reqwest::StatusCode,
        error_body: String,
    },
    #[error("JWT Parse error: {0}")]
    Jwt(String),
    #[error("Invalid client_id: {0} - Reason: {1}")]
    InvalidClientId(String, &'static str),
    #[error("Reqwest: {0}")]
    Reqwest(#[from] reqwest::Error),
    #[error("Serde_json error: {0}")]
    Json(#[from] serde_json::Error),
    #[error("IO Error: {0}")]
    Io(#[from] std::io::Error),
    #[error("Base64 decode error: {0}")]
    Base64Decode(#[from] base64::DecodeError),
}