carddav: add client support for query filter

References: https://github.com/emersion/go-webdav/issues/18
This commit is contained in:
Simon Ser
2020-01-24 12:24:35 +01:00
parent 5ada08f6ab
commit 73b67b62b1
3 changed files with 54 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ type AddressBookQuery struct {
type PropFilter struct {
Name string
Test FilterTest // defaults to FilterAnyOf
// if IsNotDefined is set, TextMatches and Params need to be unset
IsNotDefined bool
@@ -37,7 +38,6 @@ type PropFilter struct {
type ParamFilter struct {
Name string
Test FilterTest // defaults to FilterAnyOf
// if IsNotDefined is set, TextMatch needs to be unset
IsNotDefined bool