pub struct SIPClient { /* private fields */ }
Implementations§
Source§impl SIPClient
impl SIPClient
pub fn with_api_key(host: &str, api_key: &str, api_secret: &str) -> Self
pub fn new(host: &str) -> ServiceResult<Self>
pub async fn create_sip_inbound_trunk( &self, name: String, numbers: Vec<String>, options: CreateSIPInboundTrunkOptions, ) -> ServiceResult<SipInboundTrunkInfo>
pub async fn create_sip_outbound_trunk( &self, name: String, address: String, numbers: Vec<String>, options: CreateSIPOutboundTrunkOptions, ) -> ServiceResult<SipOutboundTrunkInfo>
pub async fn list_sip_trunk( &self, filter: ListSIPTrunkFilter, ) -> ServiceResult<Vec<SipTrunkInfo>>
👎Deprecated
pub async fn list_sip_inbound_trunk( &self, filter: ListSIPInboundTrunkFilter, ) -> ServiceResult<Vec<SipInboundTrunkInfo>>
pub async fn list_sip_outbound_trunk( &self, filter: ListSIPOutboundTrunkFilter, ) -> ServiceResult<Vec<SipOutboundTrunkInfo>>
pub async fn delete_sip_trunk( &self, sip_trunk_id: &str, ) -> ServiceResult<SipTrunkInfo>
pub async fn create_sip_dispatch_rule( &self, rule: Rule, options: CreateSIPDispatchRuleOptions, ) -> ServiceResult<SipDispatchRuleInfo>
pub async fn list_sip_dispatch_rule( &self, filter: ListSIPDispatchRuleFilter, ) -> ServiceResult<Vec<SipDispatchRuleInfo>>
pub async fn delete_sip_dispatch_rule( &self, sip_dispatch_rule_id: &str, ) -> ServiceResult<SipDispatchRuleInfo>
pub async fn create_sip_participant( &self, sip_trunk_id: String, call_to: String, room_name: String, options: CreateSIPParticipantOptions, ) -> ServiceResult<SipParticipantInfo>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SIPClient
impl !RefUnwindSafe for SIPClient
impl Send for SIPClient
impl Sync for SIPClient
impl Unpin for SIPClient
impl !UnwindSafe for SIPClient
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