pub struct GroupTypeChangeUpdate {
pub group_type_id: i64,
pub role_mapping: BTreeMap<String, i64>,
pub extra: Map<String, Value>,
}Expand description
Changes the group type and migrates type-specific role references. Keys and values are group-type role IDs, not group-role row IDs.
Fields§
§group_type_id: i64ID of the target group type.
role_mapping: BTreeMap<String, i64>Map each old group-type role ID (JSON key) to its target role ID in the new type. Include every role used by memberships, settings and routines. Many-to-one mapping keeps the first mapped role settings and removes obsolete ones; it is rejected with 400 when affected membership routines cannot be merged. Missing mappings are not reliably rejected before migration.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for GroupTypeChangeUpdate
impl Clone for GroupTypeChangeUpdate
Source§impl Debug for GroupTypeChangeUpdate
impl Debug for GroupTypeChangeUpdate
Source§impl Default for GroupTypeChangeUpdate
impl Default for GroupTypeChangeUpdate
Source§impl<'de> Deserialize<'de> for GroupTypeChangeUpdate
impl<'de> Deserialize<'de> for GroupTypeChangeUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GroupTypeChangeUpdate
impl PartialEq for GroupTypeChangeUpdate
Source§impl Serialize for GroupTypeChangeUpdate
impl Serialize for GroupTypeChangeUpdate
impl StructuralPartialEq for GroupTypeChangeUpdate
Auto Trait Implementations§
impl Freeze for GroupTypeChangeUpdate
impl RefUnwindSafe for GroupTypeChangeUpdate
impl Send for GroupTypeChangeUpdate
impl Sync for GroupTypeChangeUpdate
impl Unpin for GroupTypeChangeUpdate
impl UnsafeUnpin for GroupTypeChangeUpdate
impl UnwindSafe for GroupTypeChangeUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more