From bf68d81ec8420e733cdb52dd378a59b12c056152 Mon Sep 17 00:00:00 2001 From: daladim Date: Mon, 5 Jul 2021 11:04:52 +0200 Subject: [PATCH] More derive(Debug) --- src/calendar/remote_calendar.rs | 1 + src/client.rs | 3 ++- src/provider.rs | 1 + src/resource.rs | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calendar/remote_calendar.rs b/src/calendar/remote_calendar.rs index 60e9c13..c975105 100644 --- a/src/calendar/remote_calendar.rs +++ b/src/calendar/remote_calendar.rs @@ -32,6 +32,7 @@ static TASKS_BODY: &str = r#" /// A CalDAV calendar created by a [`Client`](crate::client::Client). +#[derive(Debug)] pub struct RemoteCalendar { name: String, resource: Resource, diff --git a/src/client.rs b/src/client.rs index b73510b..2e4487f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -97,6 +97,7 @@ pub(crate) async fn sub_request_and_extract_elems(resource: &Resource, method: & /// A CalDAV data source that fetches its data from a CalDAV server +#[derive(Debug)] pub struct Client { resource: Resource, @@ -106,7 +107,7 @@ pub struct Client { } -#[derive(Default)] +#[derive(Debug, Default)] struct CachedReplies { principal: Option, calendar_home_set: Option, diff --git a/src/provider.rs b/src/provider.rs index e641df2..ce479c3 100644 --- a/src/provider.rs +++ b/src/provider.rs @@ -45,6 +45,7 @@ impl SyncResult { /// /// Usually, you will only need to use a provider between a server and a local cache, that is to say a [`CalDavProvider`](crate::CalDavProvider), i.e. a `Provider`. \ /// However, providers can be used for integration tests, where the remote source is mocked by a `Cache`. +#[derive(Debug)] pub struct Provider where L: CalDavSource, diff --git a/src/resource.rs b/src/resource.rs index 1914333..a7ef98f 100644 --- a/src/resource.rs +++ b/src/resource.rs @@ -1,7 +1,7 @@ use url::Url; /// Just a wrapper around a URL and credentials -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Resource { url: Url, username: String,