pub struct ApiClient { /* private fields */ }Implementations§
Source§impl ApiClient
impl ApiClient
pub fn new( base_url: impl Into<String>, token: impl Into<String>, ) -> Result<Self, Error>
pub fn with_timeout( base_url: impl Into<String>, token: impl Into<String>, timeout: Duration, ) -> Result<Self, Error>
pub async fn alert( &self, request: Alert, key: Option<String>, ) -> Result<AlertResult, Error>
pub async fn delivery(&self, id: i64) -> Result<Delivery, Error>
pub async fn register_heartbeat( &self, request: HeartbeatInput, ) -> Result<Heartbeat, Error>
pub async fn check_in(&self, id: String) -> Result<Heartbeat, Error>
pub async fn heartbeats(&self) -> Result<Vec<Heartbeat>, Error>
pub async fn delete_heartbeat(&self, id: String) -> Result<(), Error>
pub async fn open(&self, request: OpenIssue) -> Result<MutationResult, Error>
pub async fn close(&self, id: String) -> Result<MutationResult, Error>
pub async fn get(&self, id: String) -> Result<Issue, Error>
pub async fn list( &self, status: Option<IssueStatus>, limit: u32, offset: u32, ) -> Result<IssueList, Error>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ApiClient
impl !UnwindSafe for ApiClient
impl Freeze for ApiClient
impl Send for ApiClient
impl Sync for ApiClient
impl Unpin for ApiClient
impl UnsafeUnpin for ApiClient
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