pub struct Application { /* private fields */ }Expand description
A single dialplan application with optional arguments.
Formats differently depending on DialplanType:
- Inline:
nameorname:args - XML:
&name(args)
Implementations§
Source§impl Application
impl Application
Sourcepub fn new(name: impl Into<String>, args: Option<impl Into<String>>) -> Self
pub fn new(name: impl Into<String>, args: Option<impl Into<String>>) -> Self
Create an application with optional arguments.
Sourcepub fn args_mut(&mut self) -> &mut Option<String>
pub fn args_mut(&mut self) -> &mut Option<String>
Mutable reference to the application arguments.
Sourcepub fn to_string_with_dialplan(&self, dialplan: &DialplanType) -> String
pub fn to_string_with_dialplan(&self, dialplan: &DialplanType) -> String
Format as inline (name:args) or XML (&name(args)) syntax.
Trait Implementations§
Source§impl Clone for Application
impl Clone for Application
Source§fn clone(&self) -> Application
fn clone(&self) -> Application
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 Application
impl Debug for Application
Source§impl<'de> Deserialize<'de> for Application
impl<'de> Deserialize<'de> for Application
Source§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 From<Application> for OriginateTarget
impl From<Application> for OriginateTarget
Source§fn from(app: Application) -> Self
fn from(app: Application) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Application
impl PartialEq for Application
Source§impl Serialize for Application
impl Serialize for Application
impl Eq for Application
impl StructuralPartialEq for Application
Auto Trait Implementations§
impl Freeze for Application
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnsafeUnpin for Application
impl UnwindSafe for Application
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.