pub struct SipOutboundTrunkUpdate {
pub address: Option<String>,
pub transport: Option<i32>,
pub 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§
§address: Option<String>
§transport: Option<i32>
§numbers: Option<ListUpdate>
§auth_username: Option<String>
§auth_password: Option<String>
§name: Option<String>
§metadata: Option<String>
§media_encryption: Option<i32>
Implementations§
Source§impl SipOutboundTrunkUpdate
impl SipOutboundTrunkUpdate
Sourcepub fn address(&self) -> &str
pub fn address(&self) -> &str
Returns the value of address
, or the default value if address
is unset.
Sourcepub fn transport(&self) -> SipTransport
pub fn transport(&self) -> SipTransport
Returns the enum value of transport
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_transport(&mut self, value: SipTransport)
pub fn set_transport(&mut self, value: SipTransport)
Sets transport
to the provided enum value.
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 SipOutboundTrunkUpdate
impl Clone for SipOutboundTrunkUpdate
Source§fn clone(&self) -> SipOutboundTrunkUpdate
fn clone(&self) -> SipOutboundTrunkUpdate
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 SipOutboundTrunkUpdate
impl Debug for SipOutboundTrunkUpdate
Source§impl Default for SipOutboundTrunkUpdate
impl Default for SipOutboundTrunkUpdate
§impl<'de> Deserialize<'de> for SipOutboundTrunkUpdate
impl<'de> Deserialize<'de> for SipOutboundTrunkUpdate
§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 SipOutboundTrunkUpdate
impl Message for SipOutboundTrunkUpdate
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 SipOutboundTrunkUpdate
impl PartialEq for SipOutboundTrunkUpdate
§impl Serialize for SipOutboundTrunkUpdate
impl Serialize for SipOutboundTrunkUpdate
impl StructuralPartialEq for SipOutboundTrunkUpdate
Auto Trait Implementations§
impl Freeze for SipOutboundTrunkUpdate
impl RefUnwindSafe for SipOutboundTrunkUpdate
impl Send for SipOutboundTrunkUpdate
impl Sync for SipOutboundTrunkUpdate
impl Unpin for SipOutboundTrunkUpdate
impl UnwindSafe for SipOutboundTrunkUpdate
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