pub struct HydrationRoleV2 { /* private fields */ }Expand description
One descriptor-qualified hydrated relation role.
Implementations§
Source§impl HydrationRoleV2
impl HydrationRoleV2
Sourcepub const fn new(
role: RoleId,
reference_roles: Vec<RoleId>,
players: Vec<HydrationPlayerV2>,
cardinality: Cardinality,
ordered: bool,
distinct: bool,
) -> Self
pub const fn new( role: RoleId, reference_roles: Vec<RoleId>, players: Vec<HydrationPlayerV2>, cardinality: Cardinality, ordered: bool, distinct: bool, ) -> Self
Construct one complete role projection.
Sourcepub fn reference_roles(&self) -> &[RoleId]
pub fn reference_roles(&self) -> &[RoleId]
Return every inherited/effective role reference admitted for this role.
Sourcepub fn players(&self) -> &[HydrationPlayerV2]
pub fn players(&self) -> &[HydrationPlayerV2]
Return closed declared-to-concrete player authorities.
Sourcepub const fn cardinality(&self) -> Cardinality
pub const fn cardinality(&self) -> Cardinality
Return the effective role cardinality.
Trait Implementations§
Source§impl Clone for HydrationRoleV2
impl Clone for HydrationRoleV2
Source§fn clone(&self) -> HydrationRoleV2
fn clone(&self) -> HydrationRoleV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HydrationRoleV2
impl Debug for HydrationRoleV2
Source§impl<'de> Deserialize<'de> for HydrationRoleV2
impl<'de> Deserialize<'de> for HydrationRoleV2
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 Eq for HydrationRoleV2
Source§impl PartialEq for HydrationRoleV2
impl PartialEq for HydrationRoleV2
Source§impl Serialize for HydrationRoleV2
impl Serialize for HydrationRoleV2
impl StructuralPartialEq for HydrationRoleV2
Auto Trait Implementations§
impl Freeze for HydrationRoleV2
impl RefUnwindSafe for HydrationRoleV2
impl Send for HydrationRoleV2
impl Sync for HydrationRoleV2
impl Unpin for HydrationRoleV2
impl UnsafeUnpin for HydrationRoleV2
impl UnwindSafe for HydrationRoleV2
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