Create a new workspace.
(
&self,
req: &CreateWorkspaceRequest,
)
| 315 | |
| 316 | /// Create a new workspace. |
| 317 | pub async fn create_workspace( |
| 318 | &self, |
| 319 | req: &CreateWorkspaceRequest, |
| 320 | ) -> Result<WorkspaceInfo, RemoteError> { |
| 321 | self.post("/workspaces", req).await |
| 322 | } |
| 323 | |
| 324 | /// Get a single workspace by slug. |
| 325 | pub async fn get_workspace(&self, slug: &str) -> Result<WorkspaceInfo, RemoteError> { |