pub struct ApiClient { /* private fields */ }Implementations§
Source§impl ApiClient
impl ApiClient
pub fn new(base_url: &str, api_key: Option<&str>) -> Self
pub async fn push_trace( &self, org_slug: &str, req: PushTraceRequest, ) -> Result<PushTraceResponse, Box<dyn Error>>
pub async fn register_repo( &self, org_slug: &str, req: RegisterRepoRequest, ) -> Result<RegisterRepoResponse, Box<dyn Error>>
pub async fn device_start(&self) -> Result<DeviceAuthResponse, Box<dyn Error>>
pub async fn device_status( &self, token: &str, ) -> Result<DeviceStatusResponse, Box<dyn Error>>
pub async fn logout(&self) -> Result<(), Box<dyn Error>>
pub async fn list_repos( &self, org_slug: &str, ) -> Result<Vec<RepoListItem>, Box<dyn Error>>
pub async fn verify_commits( &self, org_slug: &str, repo_id: &Uuid, req: CiVerifyRequest, ) -> Result<CiVerifyResponse, Box<dyn Error>>
pub async fn push_commit( &self, org_slug: &str, repo_id: &str, req: &CommitPushRequest, ) -> Result<CommitPushResponse, Box<dyn Error>>
pub async fn stream_event( &self, org_slug: &str, repo_id: &str, req: &StreamEventRequest, ) -> Result<StreamEventResponse, Box<dyn Error>>
pub async fn check_policies( &self, org_slug: &str, repo_id: &Uuid, req: CheckPoliciesRequest, ) -> Result<CheckPoliciesResponse, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for ApiClient
impl !RefUnwindSafe for ApiClient
impl Send for ApiClient
impl Sync for ApiClient
impl Unpin for ApiClient
impl UnsafeUnpin for ApiClient
impl !UnwindSafe 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