set max-resource-size to i64

This commit is contained in:
Lennart
2024-09-29 14:17:32 +02:00
parent e863f994b0
commit ac10ed096a

View File

@@ -72,7 +72,7 @@ pub enum CalendarProp {
)] )]
SupportedCalendarData(SupportedCalendarData), SupportedCalendarData(SupportedCalendarData),
Getcontenttype(String), Getcontenttype(String),
MaxResourceSize(String), MaxResourceSize(i64),
CurrentUserPrivilegeSet(UserPrivilegeSet), CurrentUserPrivilegeSet(UserPrivilegeSet),
SupportedReportSet(SupportedReportSet), SupportedReportSet(SupportedReportSet),
SyncToken(String), SyncToken(String),
@@ -127,9 +127,7 @@ impl Resource for CalendarResource {
CalendarPropName::Getcontenttype => { CalendarPropName::Getcontenttype => {
CalendarProp::Getcontenttype("text/calendar;charset=utf-8".to_owned()) CalendarProp::Getcontenttype("text/calendar;charset=utf-8".to_owned())
} }
CalendarPropName::MaxResourceSize => { CalendarPropName::MaxResourceSize => CalendarProp::MaxResourceSize(10000000),
CalendarProp::MaxResourceSize("10000000".to_owned())
}
CalendarPropName::CurrentUserPrivilegeSet => { CalendarPropName::CurrentUserPrivilegeSet => {
CalendarProp::CurrentUserPrivilegeSet(UserPrivilegeSet::default()) CalendarProp::CurrentUserPrivilegeSet(UserPrivilegeSet::default())
} }