pub struct Union {
pub id: UnionId,
pub name: String,
pub parents: Vec<EntityId>,
pub category: EntityId,
}Expand description
Union/category construct: several parent entities feed a single category
child entity (brModelo’s Uniao).
Fields§
§id: UnionIdUnique handle within the owning model.
name: StringOptional name shown next to the union gadget.
parents: Vec<EntityId>Parent entities whose union forms category.
category: EntityIdThe category entity (the union of parents).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Union
impl<'de> Deserialize<'de> for Union
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 Union
Auto Trait Implementations§
impl Freeze for Union
impl RefUnwindSafe for Union
impl Send for Union
impl Sync for Union
impl Unpin for Union
impl UnsafeUnpin for Union
impl UnwindSafe for Union
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