pub struct ReferToEndpointRequest { /* private fields */ }Implementations§
Source§impl ReferToEndpointRequest
impl ReferToEndpointRequest
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 ReferToEndpointRequest
impl Clone for ReferToEndpointRequest
Source§fn clone(&self) -> ReferToEndpointRequest
fn clone(&self) -> ReferToEndpointRequest
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 ReferToEndpointRequest
impl Debug for ReferToEndpointRequest
Auto Trait Implementations§
impl Freeze for ReferToEndpointRequest
impl RefUnwindSafe for ReferToEndpointRequest
impl Send for ReferToEndpointRequest
impl Sync for ReferToEndpointRequest
impl Unpin for ReferToEndpointRequest
impl UnwindSafe for ReferToEndpointRequest
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