pub struct OpportunitiesApi { /* private fields */ }Implementations§
Source§impl OpportunitiesApi
impl OpportunitiesApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn search( &self, params: &SearchOpportunitiesParams, ) -> Result<SearchOpportunitiesResponse>
pub async fn get(&self, opportunity_id: &str) -> Result<GetOpportunityResponse>
pub async fn create( &self, params: &CreateOpportunityParams, ) -> Result<GetOpportunityResponse>
pub async fn update( &self, opportunity_id: &str, params: &UpdateOpportunityParams, ) -> Result<GetOpportunityResponse>
pub async fn delete( &self, opportunity_id: &str, ) -> Result<DeleteOpportunityResponse>
pub async fn update_status( &self, opportunity_id: &str, params: &UpdateOpportunityStatusParams, ) -> Result<GetOpportunityResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for OpportunitiesApi
impl !UnwindSafe for OpportunitiesApi
impl Freeze for OpportunitiesApi
impl Send for OpportunitiesApi
impl Sync for OpportunitiesApi
impl Unpin for OpportunitiesApi
impl UnsafeUnpin for OpportunitiesApi
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