pub struct UserAccountUpdate {
pub template_id: i32,
pub update_type: Option<i32>,
pub access_type: Option<i32>,
pub source_user_id: Option<String>,
pub user: Option<String>,
pub fcm_id: Option<String>,
pub ib_id: Option<String>,
pub account_id: Option<String>,
pub account_name: Option<String>,
pub ssboe: Option<i32>,
pub usecs: Option<i32>,
}Fields§
§template_id: i32§update_type: Option<i32>§access_type: Option<i32>§source_user_id: Option<String>§user: Option<String>§fcm_id: Option<String>§ib_id: Option<String>§account_id: Option<String>§account_name: Option<String>§ssboe: Option<i32>§usecs: Option<i32>Implementations§
Source§impl UserAccountUpdate
impl UserAccountUpdate
Sourcepub fn access_type(&self) -> AccessType
pub fn access_type(&self) -> AccessType
Returns the enum value of access_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_access_type(&mut self, value: AccessType)
pub fn set_access_type(&mut self, value: AccessType)
Sets access_type to the provided enum value.
Sourcepub fn account_name(&self) -> &str
pub fn account_name(&self) -> &str
Returns the value of account_name, or the default value if account_name is unset.
Sourcepub fn account_id(&self) -> &str
pub fn account_id(&self) -> &str
Returns the value of account_id, or the default value if account_id is unset.
Sourcepub fn fcm_id(&self) -> &str
pub fn fcm_id(&self) -> &str
Returns the value of fcm_id, or the default value if fcm_id is unset.
Sourcepub fn ib_id(&self) -> &str
pub fn ib_id(&self) -> &str
Returns the value of ib_id, or the default value if ib_id is unset.
Sourcepub fn source_user_id(&self) -> &str
pub fn source_user_id(&self) -> &str
Returns the value of source_user_id, or the default value if source_user_id is unset.
Sourcepub fn update_type(&self) -> UpdateType
pub fn update_type(&self) -> UpdateType
Returns the enum value of update_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_update_type(&mut self, value: UpdateType)
pub fn set_update_type(&mut self, value: UpdateType)
Sets update_type to the provided enum value.
Trait Implementations§
Source§impl Clone for UserAccountUpdate
impl Clone for UserAccountUpdate
Source§fn clone(&self) -> UserAccountUpdate
fn clone(&self) -> UserAccountUpdate
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 UserAccountUpdate
impl Debug for UserAccountUpdate
Source§impl Default for UserAccountUpdate
impl Default for UserAccountUpdate
Source§impl Hash for UserAccountUpdate
impl Hash for UserAccountUpdate
Source§impl Message for UserAccountUpdate
impl Message for UserAccountUpdate
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 UserAccountUpdate
impl PartialEq for UserAccountUpdate
impl Eq for UserAccountUpdate
impl StructuralPartialEq for UserAccountUpdate
Auto Trait Implementations§
impl Freeze for UserAccountUpdate
impl RefUnwindSafe for UserAccountUpdate
impl Send for UserAccountUpdate
impl Sync for UserAccountUpdate
impl Unpin for UserAccountUpdate
impl UnsafeUnpin for UserAccountUpdate
impl UnwindSafe for UserAccountUpdate
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