pub struct SipInboundTrunkUpdate {
pub numbers: Option<ListUpdate>,
pub allowed_addresses: Option<ListUpdate>,
pub allowed_numbers: Option<ListUpdate>,
pub auth_username: Option<String>,
pub auth_password: Option<String>,
pub name: Option<String>,
pub metadata: Option<String>,
pub media_encryption: Option<i32>,
}
Fields§
§numbers: Option<ListUpdate>
§allowed_addresses: Option<ListUpdate>
§allowed_numbers: Option<ListUpdate>
§auth_username: Option<String>
§auth_password: Option<String>
§name: Option<String>
§metadata: Option<String>
§media_encryption: Option<i32>
Implementations§
Source§impl SipInboundTrunkUpdate
impl SipInboundTrunkUpdate
Sourcepub fn auth_username(&self) -> &str
pub fn auth_username(&self) -> &str
Returns the value of auth_username
, or the default value if auth_username
is unset.
Sourcepub fn auth_password(&self) -> &str
pub fn auth_password(&self) -> &str
Returns the value of auth_password
, or the default value if auth_password
is unset.
Sourcepub fn metadata(&self) -> &str
pub fn metadata(&self) -> &str
Returns the value of metadata
, or the default value if metadata
is unset.
Sourcepub fn media_encryption(&self) -> SipMediaEncryption
pub fn media_encryption(&self) -> SipMediaEncryption
Returns the enum value of media_encryption
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_media_encryption(&mut self, value: SipMediaEncryption)
pub fn set_media_encryption(&mut self, value: SipMediaEncryption)
Sets media_encryption
to the provided enum value.
Trait Implementations§
Source§impl Clone for SipInboundTrunkUpdate
impl Clone for SipInboundTrunkUpdate
Source§fn clone(&self) -> SipInboundTrunkUpdate
fn clone(&self) -> SipInboundTrunkUpdate
Returns a copy 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 SipInboundTrunkUpdate
impl Debug for SipInboundTrunkUpdate
Source§impl Default for SipInboundTrunkUpdate
impl Default for SipInboundTrunkUpdate
§impl<'de> Deserialize<'de> for SipInboundTrunkUpdate
impl<'de> Deserialize<'de> for SipInboundTrunkUpdate
§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 Message for SipInboundTrunkUpdate
impl Message for SipInboundTrunkUpdate
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for SipInboundTrunkUpdate
impl PartialEq for SipInboundTrunkUpdate
§impl Serialize for SipInboundTrunkUpdate
impl Serialize for SipInboundTrunkUpdate
impl StructuralPartialEq for SipInboundTrunkUpdate
Auto Trait Implementations§
impl Freeze for SipInboundTrunkUpdate
impl RefUnwindSafe for SipInboundTrunkUpdate
impl Send for SipInboundTrunkUpdate
impl Sync for SipInboundTrunkUpdate
impl Unpin for SipInboundTrunkUpdate
impl UnwindSafe for SipInboundTrunkUpdate
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