Struct mls_rs::identity::RosterUpdate
source · #[non_exhaustive]pub struct RosterUpdate { /* private fields */ }
Expand description
A set of roster updates due to a commit.
Implementations§
source§impl RosterUpdate
impl RosterUpdate
sourcepub fn new(
added: Vec<Member>,
removed: Vec<Member>,
updated: Vec<MemberUpdate>
) -> RosterUpdate
pub fn new( added: Vec<Member>, removed: Vec<Member>, updated: Vec<MemberUpdate> ) -> RosterUpdate
Create a new roster update.
sourcepub fn updated(&self) -> &[MemberUpdate]
pub fn updated(&self) -> &[MemberUpdate]
Members updated via this update.
Trait Implementations§
source§impl Clone for RosterUpdate
impl Clone for RosterUpdate
source§fn clone(&self) -> RosterUpdate
fn clone(&self) -> RosterUpdate
Returns a copy of the value. Read more
1.0.0 · 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 RosterUpdate
impl Debug for RosterUpdate
source§impl PartialEq for RosterUpdate
impl PartialEq for RosterUpdate
source§fn eq(&self, other: &RosterUpdate) -> bool
fn eq(&self, other: &RosterUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RosterUpdate
Auto Trait Implementations§
impl RefUnwindSafe for RosterUpdate
impl Send for RosterUpdate
impl Sync for RosterUpdate
impl Unpin for RosterUpdate
impl UnwindSafe for RosterUpdate
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