Struct client2::user::Collaborator
source · pub struct Collaborator {
pub peer_id: PeerId,
pub replica_id: ReplicaId,
pub user_id: UserId,
}
Fields§
§peer_id: PeerId
§replica_id: ReplicaId
§user_id: UserId
Implementations§
source§impl Collaborator
impl Collaborator
pub fn from_proto(message: Collaborator) -> Result<Self>
Trait Implementations§
source§impl Clone for Collaborator
impl Clone for Collaborator
source§fn clone(&self) -> Collaborator
fn clone(&self) -> Collaborator
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 Collaborator
impl Debug for Collaborator
source§impl PartialEq<Collaborator> for Collaborator
impl PartialEq<Collaborator> for Collaborator
source§fn eq(&self, other: &Collaborator) -> bool
fn eq(&self, other: &Collaborator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Collaborator
impl StructuralEq for Collaborator
impl StructuralPartialEq for Collaborator
Auto Trait Implementations§
impl RefUnwindSafe for Collaborator
impl Send for Collaborator
impl Sync for Collaborator
impl Unpin for Collaborator
impl UnwindSafe for Collaborator
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.