pub struct DuplicateRole<Role> {
pub declared: Vec<Role>,
pub duplicate: Role,
pub remaining: Vec<Role>,
}Expand description
A repeated role and every role value retained by failed roster validation.
Fields§
§declared: Vec<Role>Roles accepted before the repetition.
duplicate: RoleThe repeated role.
remaining: Vec<Role>Roles not examined after the repetition.
Trait Implementations§
Source§impl<Role: Debug> Debug for DuplicateRole<Role>
impl<Role: Debug> Debug for DuplicateRole<Role>
Source§impl<Role: PartialEq> PartialEq for DuplicateRole<Role>
impl<Role: PartialEq> PartialEq for DuplicateRole<Role>
impl<Role: Eq> Eq for DuplicateRole<Role>
impl<Role> StructuralPartialEq for DuplicateRole<Role>
Auto Trait Implementations§
impl<Role> Freeze for DuplicateRole<Role>where
Role: Freeze,
impl<Role> RefUnwindSafe for DuplicateRole<Role>where
Role: RefUnwindSafe,
impl<Role> Send for DuplicateRole<Role>where
Role: Send,
impl<Role> Sync for DuplicateRole<Role>where
Role: Sync,
impl<Role> Unpin for DuplicateRole<Role>where
Role: Unpin,
impl<Role> UnsafeUnpin for DuplicateRole<Role>where
Role: UnsafeUnpin,
impl<Role> UnwindSafe for DuplicateRole<Role>where
Role: UnwindSafe,
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