pub struct ContactRecord {Show 26 fields
pub aci: String,
pub e164: String,
pub pni: String,
pub profile_key: Vec<u8>,
pub identity_key: Vec<u8>,
pub identity_state: i32,
pub given_name: String,
pub family_name: String,
pub username: String,
pub blocked: bool,
pub whitelisted: bool,
pub archived: bool,
pub marked_unread: bool,
pub muted_until_timestamp: u64,
pub hide_story: bool,
pub unregistered_at_timestamp: u64,
pub system_given_name: String,
pub system_family_name: String,
pub system_nickname: String,
pub hidden: bool,
pub pni_signature_verified: bool,
pub nickname: Option<Name>,
pub note: String,
pub avatar_color: Option<i32>,
pub aci_binary: Vec<u8>,
pub pni_binary: Vec<u8>,
}Fields§
§aci: String§e164: String§pni: String§profile_key: Vec<u8>§identity_key: Vec<u8>§identity_state: i32§given_name: String§family_name: String§username: String§blocked: bool§whitelisted: bool§archived: bool§marked_unread: bool§muted_until_timestamp: u64§hide_story: bool§unregistered_at_timestamp: u64§system_given_name: String§system_family_name: String§system_nickname: String§pni_signature_verified: bool§nickname: Option<Name>§note: String§avatar_color: Option<i32>§aci_binary: Vec<u8>16-byte UUID
pni_binary: Vec<u8>16-byte UUID
Implementations§
Source§impl ContactRecord
impl ContactRecord
Sourcepub fn identity_state(&self) -> IdentityState
pub fn identity_state(&self) -> IdentityState
Returns the enum value of identity_state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_identity_state(&mut self, value: IdentityState)
pub fn set_identity_state(&mut self, value: IdentityState)
Sets identity_state to the provided enum value.
Sourcepub fn avatar_color(&self) -> AvatarColor
pub fn avatar_color(&self) -> AvatarColor
Returns the enum value of avatar_color, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_avatar_color(&mut self, value: AvatarColor)
pub fn set_avatar_color(&mut self, value: AvatarColor)
Sets avatar_color to the provided enum value.
Trait Implementations§
Source§impl Clone for ContactRecord
impl Clone for ContactRecord
Source§fn clone(&self) -> ContactRecord
fn clone(&self) -> ContactRecord
Returns a duplicate 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 ContactRecord
impl Debug for ContactRecord
Source§impl Default for ContactRecord
impl Default for ContactRecord
Source§impl Message for ContactRecord
impl Message for ContactRecord
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ContactRecord
impl PartialEq for ContactRecord
impl StructuralPartialEq for ContactRecord
Auto Trait Implementations§
impl Freeze for ContactRecord
impl RefUnwindSafe for ContactRecord
impl Send for ContactRecord
impl Sync for ContactRecord
impl Unpin for ContactRecord
impl UnsafeUnpin for ContactRecord
impl UnwindSafe for ContactRecord
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<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> PartialDefault for Twhere
T: Default,
impl<T> PartialDefault for Twhere
T: Default,
§fn partial_default() -> T
fn partial_default() -> T
Returns a value that can be safely dropped or assigned over.