pub struct CreateRequest { /* private fields */ }Implementations§
Source§impl CreateRequest
impl CreateRequest
Source§impl CreateRequest
impl CreateRequest
Sourcepub fn with_channel_id(self, value: impl Into<String>) -> Self
pub fn with_channel_id(self, value: impl Into<String>) -> Self
The unique id to assign the channel on creation.
Sourcepub fn with_other_channel_id(self, value: impl Into<String>) -> Self
pub fn with_other_channel_id(self, value: impl Into<String>) -> Self
The unique id to assign the second channel when using local channels.
Sourcepub fn with_originator(self, value: impl Into<String>) -> Self
pub fn with_originator(self, value: impl Into<String>) -> Self
Unique ID of the calling channel
Sourcepub fn with_formats(self, value: impl Into<Vec<String>>) -> Self
pub fn with_formats(self, value: impl Into<Vec<String>>) -> Self
The format name capability list to use if originator is not specified. Ex. “ulaw,slin16”.
Format names can be found with “core show codecs”.
Sourcepub fn with_variables(self, value: impl Into<Value>) -> Self
pub fn with_variables(self, value: impl Into<Value>) -> Self
The “variables” key in the body object holds variable key/value pairs to set on the channel on creation.
Other keys in the body object are interpreted as query parameters. Ex. { “endpoint”: “SIP/Alice”, “variables”: { “CALLERID(name)”: “Alice” } }
Trait Implementations§
Source§impl Clone for CreateRequest
impl Clone for CreateRequest
Source§fn clone(&self) -> CreateRequest
fn clone(&self) -> CreateRequest
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 CreateRequest
impl Debug for CreateRequest
Source§impl Default for CreateRequest
impl Default for CreateRequest
Source§fn default() -> CreateRequest
fn default() -> CreateRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateRequest
impl PartialEq for CreateRequest
Source§impl Serialize for CreateRequest
impl Serialize for CreateRequest
impl StructuralPartialEq for CreateRequest
Auto Trait Implementations§
impl Freeze for CreateRequest
impl RefUnwindSafe for CreateRequest
impl Send for CreateRequest
impl Sync for CreateRequest
impl Unpin for CreateRequest
impl UnwindSafe for CreateRequest
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