pub struct Group {
pub id: GroupId,
pub name: Option<String>,
pub members: Vec<EntityId>,
pub children: Vec<GroupId>,
pub extra: BTreeMap<String, Value>,
}Expand description
A group of entities and nested groups. Each entity and group has at most one parent group; nesting is acyclic.
Fields§
§id: GroupIdIdentifier.
name: Option<String>Display name.
members: Vec<EntityId>Member entities.
children: Vec<GroupId>Nested groups.
extra: BTreeMap<String, Value>Unknown fields preserved.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
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 Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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