#[non_exhaustive]pub struct PhoneNumberCapabilitiesBuilder { /* private fields */ }
Expand description
A builder for PhoneNumberCapabilities
.
Implementations§
source§impl PhoneNumberCapabilitiesBuilder
impl PhoneNumberCapabilitiesBuilder
sourcepub fn inbound_call(self, input: bool) -> Self
pub fn inbound_call(self, input: bool) -> Self
Allows or denies inbound calling for the specified phone number.
sourcepub fn set_inbound_call(self, input: Option<bool>) -> Self
pub fn set_inbound_call(self, input: Option<bool>) -> Self
Allows or denies inbound calling for the specified phone number.
sourcepub fn get_inbound_call(&self) -> &Option<bool>
pub fn get_inbound_call(&self) -> &Option<bool>
Allows or denies inbound calling for the specified phone number.
sourcepub fn outbound_call(self, input: bool) -> Self
pub fn outbound_call(self, input: bool) -> Self
Allows or denies outbound calling for the specified phone number.
sourcepub fn set_outbound_call(self, input: Option<bool>) -> Self
pub fn set_outbound_call(self, input: Option<bool>) -> Self
Allows or denies outbound calling for the specified phone number.
sourcepub fn get_outbound_call(&self) -> &Option<bool>
pub fn get_outbound_call(&self) -> &Option<bool>
Allows or denies outbound calling for the specified phone number.
sourcepub fn inbound_sms(self, input: bool) -> Self
pub fn inbound_sms(self, input: bool) -> Self
Allows or denies inbound SMS messaging for the specified phone number.
sourcepub fn set_inbound_sms(self, input: Option<bool>) -> Self
pub fn set_inbound_sms(self, input: Option<bool>) -> Self
Allows or denies inbound SMS messaging for the specified phone number.
sourcepub fn get_inbound_sms(&self) -> &Option<bool>
pub fn get_inbound_sms(&self) -> &Option<bool>
Allows or denies inbound SMS messaging for the specified phone number.
sourcepub fn outbound_sms(self, input: bool) -> Self
pub fn outbound_sms(self, input: bool) -> Self
Allows or denies outbound SMS messaging for the specified phone number.
sourcepub fn set_outbound_sms(self, input: Option<bool>) -> Self
pub fn set_outbound_sms(self, input: Option<bool>) -> Self
Allows or denies outbound SMS messaging for the specified phone number.
sourcepub fn get_outbound_sms(&self) -> &Option<bool>
pub fn get_outbound_sms(&self) -> &Option<bool>
Allows or denies outbound SMS messaging for the specified phone number.
sourcepub fn inbound_mms(self, input: bool) -> Self
pub fn inbound_mms(self, input: bool) -> Self
Allows or denies inbound MMS messaging for the specified phone number.
sourcepub fn set_inbound_mms(self, input: Option<bool>) -> Self
pub fn set_inbound_mms(self, input: Option<bool>) -> Self
Allows or denies inbound MMS messaging for the specified phone number.
sourcepub fn get_inbound_mms(&self) -> &Option<bool>
pub fn get_inbound_mms(&self) -> &Option<bool>
Allows or denies inbound MMS messaging for the specified phone number.
sourcepub fn outbound_mms(self, input: bool) -> Self
pub fn outbound_mms(self, input: bool) -> Self
Allows or denies outbound MMS messaging for the specified phone number.
sourcepub fn set_outbound_mms(self, input: Option<bool>) -> Self
pub fn set_outbound_mms(self, input: Option<bool>) -> Self
Allows or denies outbound MMS messaging for the specified phone number.
sourcepub fn get_outbound_mms(&self) -> &Option<bool>
pub fn get_outbound_mms(&self) -> &Option<bool>
Allows or denies outbound MMS messaging for the specified phone number.
sourcepub fn build(self) -> PhoneNumberCapabilities
pub fn build(self) -> PhoneNumberCapabilities
Consumes the builder and constructs a PhoneNumberCapabilities
.
Trait Implementations§
source§impl Clone for PhoneNumberCapabilitiesBuilder
impl Clone for PhoneNumberCapabilitiesBuilder
source§fn clone(&self) -> PhoneNumberCapabilitiesBuilder
fn clone(&self) -> PhoneNumberCapabilitiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PhoneNumberCapabilitiesBuilder
impl Default for PhoneNumberCapabilitiesBuilder
source§fn default() -> PhoneNumberCapabilitiesBuilder
fn default() -> PhoneNumberCapabilitiesBuilder
source§impl PartialEq for PhoneNumberCapabilitiesBuilder
impl PartialEq for PhoneNumberCapabilitiesBuilder
source§fn eq(&self, other: &PhoneNumberCapabilitiesBuilder) -> bool
fn eq(&self, other: &PhoneNumberCapabilitiesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PhoneNumberCapabilitiesBuilder
Auto Trait Implementations§
impl Freeze for PhoneNumberCapabilitiesBuilder
impl RefUnwindSafe for PhoneNumberCapabilitiesBuilder
impl Send for PhoneNumberCapabilitiesBuilder
impl Sync for PhoneNumberCapabilitiesBuilder
impl Unpin for PhoneNumberCapabilitiesBuilder
impl UnwindSafe for PhoneNumberCapabilitiesBuilder
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
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>
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>
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