#[non_exhaustive]pub struct UuidTransfer {
pub uuid: String,
pub destination: String,
pub dialplan: Option<DialplanType>,
}Expand description
Transfer a channel to a new destination: uuid_transfer <uuid> <dest> [dialplan].
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.uuid: StringChannel UUID.
destination: StringDestination extension or dial string.
dialplan: Option<DialplanType>Dialplan to use. If None, uses the channel’s current dialplan.
Implementations§
Source§impl UuidTransfer
impl UuidTransfer
Sourcepub fn new(uuid: impl Into<String>, destination: impl Into<String>) -> Self
pub fn new(uuid: impl Into<String>, destination: impl Into<String>) -> Self
Transfer a channel to a new destination.
Sourcepub fn with_dialplan(self, dialplan: DialplanType) -> Self
pub fn with_dialplan(self, dialplan: DialplanType) -> Self
Set the dialplan to use for the transfer.
Trait Implementations§
Source§impl Clone for UuidTransfer
impl Clone for UuidTransfer
Source§fn clone(&self) -> UuidTransfer
fn clone(&self) -> UuidTransfer
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 UuidTransfer
impl Debug for UuidTransfer
Source§impl Display for UuidTransfer
impl Display for UuidTransfer
Source§impl PartialEq for UuidTransfer
impl PartialEq for UuidTransfer
impl Eq for UuidTransfer
impl StructuralPartialEq for UuidTransfer
Auto Trait Implementations§
impl Freeze for UuidTransfer
impl RefUnwindSafe for UuidTransfer
impl Send for UuidTransfer
impl Sync for UuidTransfer
impl Unpin for UuidTransfer
impl UnsafeUnpin for UuidTransfer
impl UnwindSafe for UuidTransfer
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.