#[non_exhaustive]pub struct CallCapabilities {
pub dtmf: bool,
}
Available on crate features
events
and unstable-msc2747
only.Expand description
The capabilities of a client in a VoIP call.
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.dtmf: bool
Whether this client supports DTMF.
Defaults to false
.
Implementations§
Source§impl CallCapabilities
impl CallCapabilities
Sourcepub fn new() -> CallCapabilities
pub fn new() -> CallCapabilities
Creates a default CallCapabilities
.
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether this CallCapabilities
only contains default values.
Trait Implementations§
Source§impl Clone for CallCapabilities
impl Clone for CallCapabilities
Source§fn clone(&self) -> CallCapabilities
fn clone(&self) -> CallCapabilities
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 CallCapabilities
impl Debug for CallCapabilities
Source§impl Default for CallCapabilities
impl Default for CallCapabilities
Source§fn default() -> CallCapabilities
fn default() -> CallCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallCapabilities
impl<'de> Deserialize<'de> for CallCapabilities
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CallCapabilities
impl Serialize for CallCapabilities
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CallCapabilities
impl RefUnwindSafe for CallCapabilities
impl Send for CallCapabilities
impl Sync for CallCapabilities
impl Unpin for CallCapabilities
impl UnwindSafe for CallCapabilities
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