cts_common/protocol/
workspace.rs1use crate::WorkspaceId;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Serialize, Deserialize)]
5pub struct CreateWorkspaceResponse {
6 pub id: WorkspaceId,
7}
8
9#[cfg(feature = "server")]
10pub(super) mod server {
11 use super::*;
12 use axum::{response::IntoResponse, Json};
13
14 impl IntoResponse for CreateWorkspaceResponse {
15 fn into_response(self) -> axum::response::Response {
16 (http::StatusCode::CREATED, Json(self)).into_response()
17 }
18 }
19}