summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-04-07 18:03:29 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-04-07 18:03:29 +0200
commit825a0216c4fe4fb76e2fd27621eab74dcc189e60 (patch)
treea4b5b9ea3c614a2e0dd5ce34bee7e0e193353239
parentd712ad9a51a433039cb9abcf85ef2d9ff1477279 (diff)
lib: Derive Debug everywhere
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--librepology/src/v1/api/client.rs1
-rw-r--r--librepology/src/v1/api/request.rs1
-rw-r--r--librepology/src/v1/api/request_builder.rs9
-rw-r--r--librepology/src/v1/api/response.rs1
4 files changed, 12 insertions, 0 deletions
diff --git a/librepology/src/v1/api/client.rs b/librepology/src/v1/api/client.rs
index 8d052d5..0682566 100644
--- a/librepology/src/v1/api/client.rs
+++ b/librepology/src/v1/api/client.rs
@@ -10,6 +10,7 @@ static APP_USER_AGENT: &str = concat!(
env!("CARGO_PKG_VERSION"),
);
+#[derive(Debug)]
pub struct ApiClient {
pub(super) endpoint_url: &'static str,
pub(super) client: reqwest::Client,
diff --git a/librepology/src/v1/api/request.rs b/librepology/src/v1/api/request.rs
index 41bab81..b923426 100644
--- a/librepology/src/v1/api/request.rs
+++ b/librepology/src/v1/api/request.rs
@@ -8,6 +8,7 @@ use crate::v1::error::Result;
use crate::v1::api::ProblemsForMaintainerAndRepoRequestBuilder;
use crate::v1::api::ProblemsForRepoRequestBuilder;
+#[derive(Debug)]
pub struct Request<'a> {
client: &'a ApiClient,
request_string: String
diff --git a/librepology/src/v1/api/request_builder.rs b/librepology/src/v1/api/request_builder.rs
index 09c0329..bbc9cd3 100644
--- a/librepology/src/v1/api/request_builder.rs
+++ b/librepology/src/v1/api/request_builder.rs
@@ -1,5 +1,6 @@
use crate::v1::api::ApiClient;
+#[derive(Debug)]
pub struct ProjectRequestBuilder<'a>(pub(super) &'a ApiClient);
impl<'a> ProjectRequestBuilder<'a> {
@@ -26,8 +27,10 @@ impl<'a> ProjectRequestBuilder<'a> {
}
+#[derive(Debug)]
pub struct ProjectRequestBuilderWithName<'a>(pub(super) &'a ApiClient, pub(super) String);
+#[derive(Debug)]
pub struct ProjectRequestFilteredBuilder<'a> {
pub(super) client: &'a ApiClient,
@@ -104,6 +107,7 @@ impl<'a> ProjectRequestFilteredBuilder<'a> {
}
+#[derive(Debug)]
pub enum NumberOrRange {
Number(usize),
Range(Option<usize>, Option<usize>),
@@ -111,6 +115,7 @@ pub enum NumberOrRange {
+#[derive(Debug)]
pub struct ProblemsRequestBuilder<'a>(pub(super) &'a ApiClient);
impl<'a> ProblemsRequestBuilder<'a> {
@@ -123,7 +128,10 @@ impl<'a> ProblemsRequestBuilder<'a> {
}
}
+#[derive(Debug)]
pub struct ProblemsForMaintainerRequestBuilder<'a>(&'a ApiClient, String);
+
+#[derive(Debug)]
pub struct ProblemsForRepoRequestBuilder<'a>(pub(super) &'a ApiClient, pub(super) String);
impl<'a> ProblemsForMaintainerRequestBuilder<'a> {
@@ -136,6 +144,7 @@ impl<'a> ProblemsForMaintainerRequestBuilder<'a> {
}
}
+#[derive(Debug)]
pub struct ProblemsForMaintainerAndRepoRequestBuilder<'a> {
pub(super) client: &'a ApiClient,
pub(super) maintainer: String,
diff --git a/librepology/src/v1/api/response.rs b/librepology/src/v1/api/response.rs
index d6a6e6c..9f52ab8 100644
--- a/librepology/src/v1/api/response.rs
+++ b/librepology/src/v1/api/response.rs
@@ -1,6 +1,7 @@
use crate::v1::error::Result;
use crate::v1::error::RepologyError;
+#[derive(Debug)]
pub struct Response(pub(super) String);
impl Response {