pub struct InputPhoneContact {
pub client_id: i64,
pub phone: String,
pub first_name: String,
pub last_name: String,
pub note: Option<TextWithEntities>,
}Expand description
Generated from:
inputPhoneContact#6a1dc4be flags:# client_id:long phone:string first_name:string last_name:string note:flags.0?TextWithEntities = InputContactFields§
§client_id: i64§phone: String§first_name: String§last_name: String§note: Option<TextWithEntities>Trait Implementations§
Source§impl Clone for InputPhoneContact
impl Clone for InputPhoneContact
Source§fn clone(&self) -> InputPhoneContact
fn clone(&self) -> InputPhoneContact
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 InputPhoneContact
impl Debug for InputPhoneContact
Source§impl Deserializable for InputPhoneContact
impl Deserializable for InputPhoneContact
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<InputPhoneContact> for InputContact
impl From<InputPhoneContact> for InputContact
Source§fn from(x: InputPhoneContact) -> Self
fn from(x: InputPhoneContact) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputPhoneContact
impl Identifiable for InputPhoneContact
Source§const CONSTRUCTOR_ID: u32 = 0x6a1dc4be
const CONSTRUCTOR_ID: u32 = 0x6a1dc4be
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputPhoneContact
impl PartialEq for InputPhoneContact
Source§impl Serializable for InputPhoneContact
impl Serializable for InputPhoneContact
Source§impl TryFrom<InputContact> for InputPhoneContact
impl TryFrom<InputContact> for InputPhoneContact
Source§type Error = InputContact
type Error = InputContact
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputPhoneContact
Auto Trait Implementations§
impl Freeze for InputPhoneContact
impl RefUnwindSafe for InputPhoneContact
impl Send for InputPhoneContact
impl Sync for InputPhoneContact
impl Unpin for InputPhoneContact
impl UnsafeUnpin for InputPhoneContact
impl UnwindSafe for InputPhoneContact
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