#[non_exhaustive]pub struct ConversationPhoneNumber {
pub country_code: i32,
pub phone_number: String,
/* private fields */
}Available on crate feature
conversations only.Expand description
Represents a phone number for telephony integration. It allows for connecting a particular conversation over telephony.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.country_code: i32Output only. Desired country code for the phone number.
phone_number: StringOutput only. The phone number to connect to this conversation.
Implementations§
Source§impl ConversationPhoneNumber
impl ConversationPhoneNumber
pub fn new() -> Self
Sourcepub fn set_country_code<T: Into<i32>>(self, v: T) -> Self
pub fn set_country_code<T: Into<i32>>(self, v: T) -> Self
Sets the value of country_code.
§Example
ⓘ
let x = ConversationPhoneNumber::new().set_country_code(42);Sourcepub fn set_phone_number<T: Into<String>>(self, v: T) -> Self
pub fn set_phone_number<T: Into<String>>(self, v: T) -> Self
Sets the value of phone_number.
§Example
ⓘ
let x = ConversationPhoneNumber::new().set_phone_number("example");Trait Implementations§
Source§impl Clone for ConversationPhoneNumber
impl Clone for ConversationPhoneNumber
Source§fn clone(&self) -> ConversationPhoneNumber
fn clone(&self) -> ConversationPhoneNumber
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 ConversationPhoneNumber
impl Debug for ConversationPhoneNumber
Source§impl Default for ConversationPhoneNumber
impl Default for ConversationPhoneNumber
Source§fn default() -> ConversationPhoneNumber
fn default() -> ConversationPhoneNumber
Returns the “default value” for a type. Read more
Source§impl Message for ConversationPhoneNumber
impl Message for ConversationPhoneNumber
Source§impl PartialEq for ConversationPhoneNumber
impl PartialEq for ConversationPhoneNumber
impl StructuralPartialEq for ConversationPhoneNumber
Auto Trait Implementations§
impl Freeze for ConversationPhoneNumber
impl RefUnwindSafe for ConversationPhoneNumber
impl Send for ConversationPhoneNumber
impl Sync for ConversationPhoneNumber
impl Unpin for ConversationPhoneNumber
impl UnwindSafe for ConversationPhoneNumber
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