pub struct ImportedContact {
pub phone_number: String,
pub first_name: String,
pub last_name: String,
pub note: FormattedText,
}Expand description
Describes a contact to import
Fields§
§phone_number: StringPhone number of the user
first_name: StringFirst name of the user; 1-64 characters
last_name: StringLast name of the user; 0-64 characters
note: FormattedTextNote to add about the user; 0-getOption(“user_note_text_length_max”) characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed; pass null to keep the current user’s note
Trait Implementations§
Source§impl Clone for ImportedContact
impl Clone for ImportedContact
Source§fn clone(&self) -> ImportedContact
fn clone(&self) -> ImportedContact
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 ImportedContact
impl Debug for ImportedContact
Source§impl Default for ImportedContact
impl Default for ImportedContact
Source§fn default() -> ImportedContact
fn default() -> ImportedContact
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImportedContact
impl<'de> Deserialize<'de> for ImportedContact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ImportedContact
impl PartialEq for ImportedContact
Source§impl Serialize for ImportedContact
impl Serialize for ImportedContact
impl StructuralPartialEq for ImportedContact
Auto Trait Implementations§
impl Freeze for ImportedContact
impl RefUnwindSafe for ImportedContact
impl Send for ImportedContact
impl Sync for ImportedContact
impl Unpin for ImportedContact
impl UnsafeUnpin for ImportedContact
impl UnwindSafe for ImportedContact
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