user: Rename user_type to principal_type

This commit is contained in:
Lennart
2025-02-09 17:21:29 +01:00
parent 8948589b09
commit d0d7a6dc78
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ impl Resource for PrincipalResource {
PrincipalPropWrapperName::Principal(prop) => {
PrincipalPropWrapper::Principal(match prop {
PrincipalPropName::CalendarUserType => {
PrincipalProp::CalendarUserType(self.principal.user_type.to_owned())
PrincipalProp::CalendarUserType(self.principal.principal_type.to_owned())
}
PrincipalPropName::Displayname => PrincipalProp::Displayname(
self.principal

View File

@@ -41,7 +41,7 @@ pub struct User {
pub id: String,
pub displayname: Option<String>,
#[serde(default)]
pub user_type: PrincipalType,
pub principal_type: PrincipalType,
pub password: Option<String>,
#[serde(default)]
pub app_tokens: Vec<String>,