pub struct OutboundTrunkResource<'a> { /* private fields */ }Expand description
Outbound SIP trunks: connections used to place calls to a SIP host. Reached
via SipTrunksResource::outbound.
Implementations§
Source§impl<'a> OutboundTrunkResource<'a>
impl<'a> OutboundTrunkResource<'a>
Sourcepub async fn create(
&self,
params: CreateOutboundTrunkParams,
) -> Result<SipTrunk>
pub async fn create( &self, params: CreateOutboundTrunkParams, ) -> Result<SipTrunk>
Creates an outbound trunk.
Sourcepub async fn list(&self, params: SipTrunkListParams) -> Result<Page<SipTrunk>>
pub async fn list(&self, params: SipTrunkListParams) -> Result<Page<SipTrunk>>
Lists outbound trunks, one page at a time.
Sourcepub fn list_stream(
&self,
params: SipTrunkListParams,
) -> impl Stream<Item = Result<SipTrunk>> + Send
pub fn list_stream( &self, params: SipTrunkListParams, ) -> impl Stream<Item = Result<SipTrunk>> + Send
Lists outbound trunks, transparently fetching every page.
Sourcepub async fn update(
&self,
trunk_id: &str,
params: UpdateOutboundTrunkParams,
) -> Result<SipTrunk>
pub async fn update( &self, trunk_id: &str, params: UpdateOutboundTrunkParams, ) -> Result<SipTrunk>
Partially updates an outbound trunk. The same reset semantics as the inbound update apply.
Sourcepub async fn delete(&self, trunk_id: &str) -> Result<MessageResponse>
pub async fn delete(&self, trunk_id: &str) -> Result<MessageResponse>
Deletes an outbound trunk.
Trait Implementations§
Source§impl<'a> Clone for OutboundTrunkResource<'a>
impl<'a> Clone for OutboundTrunkResource<'a>
Source§fn clone(&self) -> OutboundTrunkResource<'a>
fn clone(&self) -> OutboundTrunkResource<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for OutboundTrunkResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OutboundTrunkResource<'a>
impl<'a> !UnwindSafe for OutboundTrunkResource<'a>
impl<'a> Freeze for OutboundTrunkResource<'a>
impl<'a> Send for OutboundTrunkResource<'a>
impl<'a> Sync for OutboundTrunkResource<'a>
impl<'a> Unpin for OutboundTrunkResource<'a>
impl<'a> UnsafeUnpin for OutboundTrunkResource<'a>
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