pub struct MockProjectsApi {
ProjectsApi_expectations: MockProjectsApi_ProjectsApi,
}Fields§
§ProjectsApi_expectations: MockProjectsApi_ProjectsApiImplementations§
Source§impl MockProjectsApi
impl MockProjectsApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockProjectsApi
impl MockProjectsApi
Sourcepub fn expect_bulk_delete(&mut self) -> &mut Expectation
pub fn expect_bulk_delete(&mut self) -> &mut Expectation
Create an Expectation for mocking the bulk_delete method
Sourcepub fn expect_create(&mut self) -> &mut Expectation
pub fn expect_create(&mut self) -> &mut Expectation
Create an Expectation for mocking the create method
Sourcepub fn expect_get(&mut self) -> &mut Expectation
pub fn expect_get(&mut self) -> &mut Expectation
Create an Expectation for mocking the get method
Sourcepub fn expect_list_by_organization(&mut self) -> &mut Expectation
pub fn expect_list_by_organization(&mut self) -> &mut Expectation
Create an Expectation for mocking the list_by_organization method
Sourcepub fn expect_update(&mut self) -> &mut Expectation
pub fn expect_update(&mut self) -> &mut Expectation
Create an Expectation for mocking the update method
Trait Implementations§
Source§impl Debug for MockProjectsApi
impl Debug for MockProjectsApi
Source§impl Default for MockProjectsApi
impl Default for MockProjectsApi
Source§impl ProjectsApi for MockProjectsApi
impl ProjectsApi for MockProjectsApi
Source§fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<BulkDeleteResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<BulkDeleteResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /projects/delete
Source§fn create<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
project_create_request_model: Option<ProjectCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProjectResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn create<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
project_create_request_model: Option<ProjectCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProjectResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{organizationId}/projects
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProjectResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProjectResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /projects/{id}
Source§fn list_by_organization<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProjectResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn list_by_organization<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProjectResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{organizationId}/projects
Source§fn update<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
project_update_request_model: Option<ProjectUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProjectResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
project_update_request_model: Option<ProjectUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProjectResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /projects/{id}
Auto Trait Implementations§
impl Freeze for MockProjectsApi
impl RefUnwindSafe for MockProjectsApi
impl Send for MockProjectsApi
impl Sync for MockProjectsApi
impl Unpin for MockProjectsApi
impl UnsafeUnpin for MockProjectsApi
impl UnwindSafe for MockProjectsApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more