1
Fork 0

nodeinfo: Derive Debug on all structs

This commit is contained in:
Steffo 2024-11-09 13:27:26 +01:00
parent f9da277845
commit 00befc432d
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -240,6 +240,7 @@ impl HostMetaDocument {
}
}
#[derive(Debug)]
pub enum HostMetaDiscoverError {
/// Manipulation of the URL scheme of the given base failed.
///
@ -249,6 +250,8 @@ pub enum HostMetaDiscoverError {
/// All attempts of fetching the host-meta document failed.
Fetch(HostMetaDiscoveryAttemptsErrors),
}
#[derive(Debug)]
pub struct HostMetaDiscoveryAttemptsErrors {
/// The error that occoured when trying to fetch the host-meta document in [XRD format] via [HTTPS].
///
@ -275,6 +278,7 @@ pub struct HostMetaDiscoveryAttemptsErrors {
pub http_jrd: HostMetaGetJRDError,
}
#[derive(Debug)]
pub enum HostMetaGetXRDError {
/// The HTTP request failed.
Request(reqwest::Error),
@ -288,6 +292,7 @@ pub enum HostMetaGetXRDError {
Parse(quick_xml::DeError),
}
#[derive(Debug)]
pub enum HostMetaGetJRDError {
/// The HTTP request failed.
Request(reqwest::Error),