pub struct UserGroup {
pub pk: Uuid,
pub num_pk: i32,
pub name: String,
pub is_superuser: Option<bool>,
pub parent: Option<Option<Uuid>>,
pub parent_name: String,
pub attributes: Option<HashMap<String, Value>>,
}
Expand description
UserGroup : Simplified Group Serializer for user’s groups
Fields§
§pk: Uuid
§num_pk: i32
Get a numerical, int32 ID for the group
name: String
§is_superuser: Option<bool>
Users added to this group will be superusers.
parent: Option<Option<Uuid>>
§parent_name: String
§attributes: Option<HashMap<String, Value>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserGroup
impl<'de> Deserialize<'de> for UserGroup
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
impl StructuralPartialEq for UserGroup
Auto Trait Implementations§
impl Freeze for UserGroup
impl RefUnwindSafe for UserGroup
impl Send for UserGroup
impl Sync for UserGroup
impl Unpin for UserGroup
impl UnwindSafe for UserGroup
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