More derive(Debug)

This commit is contained in:
daladim 2021-07-05 11:04:52 +02:00
parent 58cfb42f64
commit bf68d81ec8
4 changed files with 5 additions and 2 deletions

View file

@ -32,6 +32,7 @@ static TASKS_BODY: &str = r#"
/// A CalDAV calendar created by a [`Client`](crate::client::Client). /// A CalDAV calendar created by a [`Client`](crate::client::Client).
#[derive(Debug)]
pub struct RemoteCalendar { pub struct RemoteCalendar {
name: String, name: String,
resource: Resource, resource: Resource,

View file

@ -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 /// A CalDAV data source that fetches its data from a CalDAV server
#[derive(Debug)]
pub struct Client { pub struct Client {
resource: Resource, resource: Resource,
@ -106,7 +107,7 @@ pub struct Client {
} }
#[derive(Default)] #[derive(Debug, Default)]
struct CachedReplies { struct CachedReplies {
principal: Option<Resource>, principal: Option<Resource>,
calendar_home_set: Option<Resource>, calendar_home_set: Option<Resource>,

View file

@ -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<Cache, CachedCalendar, Client, RemoteCalendar>`. \ /// 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<Cache, CachedCalendar, Client, RemoteCalendar>`. \
/// However, providers can be used for integration tests, where the remote source is mocked by a `Cache`. /// However, providers can be used for integration tests, where the remote source is mocked by a `Cache`.
#[derive(Debug)]
pub struct Provider<L, T, R, U> pub struct Provider<L, T, R, U>
where where
L: CalDavSource<T>, L: CalDavSource<T>,

View file

@ -1,7 +1,7 @@
use url::Url; use url::Url;
/// Just a wrapper around a URL and credentials /// Just a wrapper around a URL and credentials
#[derive(Clone)] #[derive(Clone, Debug)]
pub struct Resource { pub struct Resource {
url: Url, url: Url,
username: String, username: String,