pub struct CreateRoleProjection { /* private fields */ }Expand description
One active related-role input in a create facet.
Implementations§
Source§impl CreateRoleProjection
impl CreateRoleProjection
Sourcepub fn new(
role: RoleId,
players: BTreeSet<ProjectedModelUse>,
multiplicity: ProjectedMultiplicity,
) -> Result<Self, Diagnostic>
pub fn new( role: RoleId, players: BTreeSet<ProjectedModelUse>, multiplicity: ProjectedMultiplicity, ) -> Result<Self, Diagnostic>
Construct one role input from its exact accepted player uses.
Sourcepub const fn players(&self) -> &BTreeSet<ProjectedModelUse>
pub const fn players(&self) -> &BTreeSet<ProjectedModelUse>
Return exact accepted player forms.
Sourcepub const fn multiplicity(&self) -> ProjectedMultiplicity
pub const fn multiplicity(&self) -> ProjectedMultiplicity
Return input requiredness/container shape.
Trait Implementations§
Source§impl Clone for CreateRoleProjection
impl Clone for CreateRoleProjection
Source§impl Debug for CreateRoleProjection
impl Debug for CreateRoleProjection
impl Eq for CreateRoleProjection
Source§impl PartialEq for CreateRoleProjection
impl PartialEq for CreateRoleProjection
Source§impl Serialize for CreateRoleProjection
impl Serialize for CreateRoleProjection
impl StructuralPartialEq for CreateRoleProjection
Auto Trait Implementations§
impl Freeze for CreateRoleProjection
impl RefUnwindSafe for CreateRoleProjection
impl Send for CreateRoleProjection
impl Sync for CreateRoleProjection
impl Unpin for CreateRoleProjection
impl UnsafeUnpin for CreateRoleProjection
impl UnwindSafe for CreateRoleProjection
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