pub struct ReferRequest { /* private fields */ }Implementations§
Source§impl ReferRequest
impl ReferRequest
Source§impl ReferRequest
impl ReferRequest
Sourcepub fn with_to_self(self, value: impl Into<bool>) -> Self
pub fn with_to_self(self, value: impl Into<bool>) -> Self
If true and “refer_to” refers to an Asterisk endpoint, the “refer_to” value is set to point to this Asterisk endpoint - so the referee is referred to Asterisk. Otherwise, use the contact URI associated with the endpoint.
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 technology specific key/value pairs to append to the message.
These can be interpreted and used by the various resource types; for example, the pjsip resource type will add the key/value pairs as SIP headers. The “display_name” key is used by the PJSIP technology. Its value will be prepended as a display name to the Refer-To URI.
Trait Implementations§
Source§impl Clone for ReferRequest
impl Clone for ReferRequest
Source§fn clone(&self) -> ReferRequest
fn clone(&self) -> ReferRequest
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 ReferRequest
impl Debug for ReferRequest
Auto Trait Implementations§
impl Freeze for ReferRequest
impl RefUnwindSafe for ReferRequest
impl Send for ReferRequest
impl Sync for ReferRequest
impl Unpin for ReferRequest
impl UnwindSafe for ReferRequest
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