Enum rpc2::proto::ContactRequestResponse
source · #[repr(i32)]pub enum ContactRequestResponse {
Accept,
Decline,
Block,
Dismiss,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ContactRequestResponse
impl Clone for ContactRequestResponse
source§fn clone(&self) -> ContactRequestResponse
fn clone(&self) -> ContactRequestResponse
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 ContactRequestResponse
impl Debug for ContactRequestResponse
source§impl Default for ContactRequestResponse
impl Default for ContactRequestResponse
source§fn default() -> ContactRequestResponse
fn default() -> ContactRequestResponse
Returns the “default value” for a type. Read more
source§impl From<ContactRequestResponse> for i32
impl From<ContactRequestResponse> for i32
source§fn from(value: ContactRequestResponse) -> i32
fn from(value: ContactRequestResponse) -> i32
Converts to this type from the input type.
source§impl Hash for ContactRequestResponse
impl Hash for ContactRequestResponse
source§impl Ord for ContactRequestResponse
impl Ord for ContactRequestResponse
source§fn cmp(&self, other: &ContactRequestResponse) -> Ordering
fn cmp(&self, other: &ContactRequestResponse) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ContactRequestResponse> for ContactRequestResponse
impl PartialEq<ContactRequestResponse> for ContactRequestResponse
source§fn eq(&self, other: &ContactRequestResponse) -> bool
fn eq(&self, other: &ContactRequestResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ContactRequestResponse> for ContactRequestResponse
impl PartialOrd<ContactRequestResponse> for ContactRequestResponse
source§fn partial_cmp(&self, other: &ContactRequestResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &ContactRequestResponse) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ContactRequestResponse
impl Serialize for ContactRequestResponse
impl Copy for ContactRequestResponse
impl Eq for ContactRequestResponse
impl StructuralEq for ContactRequestResponse
impl StructuralPartialEq for ContactRequestResponse
Auto Trait Implementations§
impl RefUnwindSafe for ContactRequestResponse
impl Send for ContactRequestResponse
impl Sync for ContactRequestResponse
impl Unpin for ContactRequestResponse
impl UnwindSafe for ContactRequestResponse
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.