pub struct Project { /* private fields */ }Implementations§
Source§impl Project
impl Project
pub fn new(http_client: Arc<HTTPClient>) -> Self
Sourcepub async fn list_projects(&self) -> Result<ProjectList, UbiClientError>
pub async fn list_projects(&self) -> Result<ProjectList, UbiClientError>
List all projects visible to the logged in user. https://api.ubicloud.com/project
Sourcepub async fn create_project(
&self,
name: &str,
) -> Result<UserProject, UbiClientError>
pub async fn create_project( &self, name: &str, ) -> Result<UserProject, UbiClientError>
Create a new project https://api.ubicloud.com/project
§Arguments:
name- The name of the project to create.
Sourcepub async fn delete_project(
&self,
project_id: &str,
) -> Result<(), UbiClientError>
pub async fn delete_project( &self, project_id: &str, ) -> Result<(), UbiClientError>
Delete a project https://api.ubicloud.com/project/{project_id}
§Arguments:
project_id- The ID of the project to delete.
Auto Trait Implementations§
impl Freeze for Project
impl !RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl !UnwindSafe for Project
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