wwsvc-rs 3.1.4

A web client which is used to consume SoftENGINE's WEBSERVICES, a proprietary API for their software WEBWARE.
Documentation
/// Error type for the wwsvc-rs crate.
#[derive(Debug, thiserror::Error, miette::Diagnostic)]
pub enum WWSVCError {
    /// The client is not authenticated.
    #[error("The client is not authenticated.")]
    #[diagnostic(code(wwsvc_rs::error::WWSVCError::NotAuthenticated))]
    NotAuthenticated,

    /// Missing credentials.
    #[error("Missing credentials.")]
    #[diagnostic(code(wwsvc_rs::error::WWSVCError::MissingCredentials))]
    MissingCredentials,

    /// Header value contained non-ASCII characters.
    #[error("Header value contained non-ASCII characters.")]
    #[diagnostic(code(wwsvc_rs::error::WWSVCError::HeaderValueToStrError))]
    HeaderValueToStrError,

    /// Invalid header name or value.
    #[error("Invalid header name or value.")]
    #[diagnostic(code(wwsvc_rs::error::WWSVCError::InvalidHeader))]
    InvalidHeader,

    /// The request to the server has failed.
    #[error(transparent)]
    #[diagnostic(code(wwsvc_rs::error::WWSVCError::ReqwestError))]
    ReqwestError(#[from] reqwest::Error),

    /// An invalid header value has been provided.
    #[error(transparent)]
    #[diagnostic(code(wwsvc_rs::error::WWSVCError::InvalidHeaderValue))]
    InvalidHeaderValue(#[from] reqwest::header::InvalidHeaderValue),

    /// Url parsing error.
    #[error(transparent)]
    #[diagnostic(code(wwsvc_rs::error::WWSVCError::UrlParseError))]
    UrlParseError(#[from] url::ParseError),
}