ldp 0.0.0

A library to assist with the creation and maintenance of remote RDF data via LDP
Documentation
use thiserror::Error;

/// The result type for the library.
pub type Result<T> = std::result::Result<T, Error>;

/// The error type for the library.
#[derive(Error, Debug)]
pub enum Error {
    #[error(transparent)]
    Io(#[from] std::io::Error),

    #[error(transparent)]
    Reqwest(#[from] reqwest_middleware::reqwest::Error),

    #[error(transparent)]
    ReqwestMiddleware(#[from] reqwest_middleware::Error),

    /// The server did not advertise LDP support.
    #[error("Server did not advertise LDP support")]
    LDPUnsupported,

    /// The response from the server was not in a format we understand.
    #[error("Response was not in a supported RDF format")]
    UnsupportedFormat,
}