pub struct InboundTrunkResource<'a> { /* private fields */ }Expand description
Inbound SIP trunks: connections that receive calls for a set of numbers.
Reached via SipTrunksResource::inbound.
Implementations§
Source§impl<'a> InboundTrunkResource<'a>
impl<'a> InboundTrunkResource<'a>
Sourcepub async fn create(&self, params: CreateInboundTrunkParams) -> Result<SipTrunk>
pub async fn create(&self, params: CreateInboundTrunkParams) -> Result<SipTrunk>
Creates an inbound trunk.
Sourcepub async fn list(&self, params: SipTrunkListParams) -> Result<Page<SipTrunk>>
pub async fn list(&self, params: SipTrunkListParams) -> Result<Page<SipTrunk>>
Lists inbound 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 inbound trunks, transparently fetching every page.
Sourcepub async fn update(
&self,
trunk_id: &str,
params: UpdateInboundTrunkParams,
) -> Result<SipTrunk>
pub async fn update( &self, trunk_id: &str, params: UpdateInboundTrunkParams, ) -> Result<SipTrunk>
Partially updates an inbound trunk. See UpdateInboundTrunkParams for
the fields that reset when omitted.
Sourcepub async fn delete(&self, trunk_id: &str) -> Result<MessageResponse>
pub async fn delete(&self, trunk_id: &str) -> Result<MessageResponse>
Deletes an inbound trunk.
Trait Implementations§
Source§impl<'a> Clone for InboundTrunkResource<'a>
impl<'a> Clone for InboundTrunkResource<'a>
Source§fn clone(&self) -> InboundTrunkResource<'a>
fn clone(&self) -> InboundTrunkResource<'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 InboundTrunkResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InboundTrunkResource<'a>
impl<'a> !UnwindSafe for InboundTrunkResource<'a>
impl<'a> Freeze for InboundTrunkResource<'a>
impl<'a> Send for InboundTrunkResource<'a>
impl<'a> Sync for InboundTrunkResource<'a>
impl<'a> Unpin for InboundTrunkResource<'a>
impl<'a> UnsafeUnpin for InboundTrunkResource<'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