mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
Add namespaces to props
This commit is contained in:
@@ -29,7 +29,9 @@ pub struct AddressObjectResourceService<AS: AddressbookStore + ?Sized> {
|
||||
)]
|
||||
pub enum AddressObjectProp {
|
||||
// WebDAV (RFC 2518)
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAV")]
|
||||
Getetag(String),
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAV")]
|
||||
Getcontenttype(String),
|
||||
|
||||
// CalDAV (RFC 4791)
|
||||
|
||||
@@ -33,7 +33,9 @@ pub struct AddressbookResourceService<AS: AddressbookStore + ?Sized> {
|
||||
)]
|
||||
pub enum AddressbookProp {
|
||||
// WebDAV (RFC 2518)
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAV")]
|
||||
Displayname(Option<String>),
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAV")]
|
||||
Getcontenttype(String),
|
||||
|
||||
// CardDAV (RFC 6352)
|
||||
@@ -43,10 +45,13 @@ pub enum AddressbookProp {
|
||||
#[xml(ns = "rustical_dav::namespace::NS_CARDDAV")]
|
||||
SupportedAddressData(SupportedAddressData),
|
||||
#[xml(skip_deserializing)]
|
||||
#[xml(ns = "rustical_dav::namespace::NS_CARDDAV")]
|
||||
SupportedReportSet(SupportedReportSet),
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAV")]
|
||||
MaxResourceSize(i64),
|
||||
|
||||
// Collection Synchronization (RFC 6578)
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAV")]
|
||||
SyncToken(String),
|
||||
|
||||
// Didn't find the spec
|
||||
|
||||
@@ -31,8 +31,9 @@ pub struct PrincipalResource {
|
||||
)]
|
||||
pub enum PrincipalProp {
|
||||
// WebDAV Access Control (RFC 3744)
|
||||
#[xml(rename = b"principal-URL")]
|
||||
#[strum_discriminants(strum(serialize = "principal-URL"))]
|
||||
#[xml(rename = b"principal-URL")]
|
||||
#[xml(ns = "rustical_dav::namespace::NS_DAV")]
|
||||
PrincipalUrl(HrefElement),
|
||||
|
||||
// CardDAV (RFC 6352)
|
||||
|
||||
Reference in New Issue
Block a user