asterisk_ari_client_rs/apis/
applications.rs1use crate::errors::Result;
2use crate::models::applications::Application;
3use async_trait::async_trait;
4
5#[async_trait]
6pub trait ApplicationsAPI {
7 async fn filter(
9 &self,
10 application_name: &str,
11 filter: Option<serde_json::Value>,
12 ) -> Result<String>;
13
14 async fn get(&self, application_name: &str) -> Result<Application>;
16
17 async fn list(&self) -> Result<Vec<Application>>;
19
20 async fn subscribe(&self, application_name: &str, event_source: Vec<String>) -> Result<String>;
22
23 async fn unsubscribe(
25 &self,
26 application_name: &str,
27 event_source: Vec<String>,
28 ) -> Result<String>;
29}