Skip to content

Commit da03521

Browse files
committed
refactor: drop dead Deserialize derives on output DTOs
1 parent 01c4361 commit da03521

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/connections.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ pub fn get(workspace_id: &str, connection_id: &str, format: &str) {
299299
}
300300
}
301301

302-
#[derive(Deserialize, Serialize)]
303302
struct CreateResponse {
304303
id: String,
305304
name: String,

src/databases.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DEFAULT_SCHEMA: &str = "public";
99
/// mapped from the SDK's `DatabaseSummary` (see the `From` impl) so the
1010
/// `-o json`/`-o yaml` contract stays decoupled from generated-model field
1111
/// order and nullability.
12-
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
12+
#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
1313
struct DatabaseSummary {
1414
id: String,
1515
#[serde(default)]
@@ -22,7 +22,7 @@ struct DatabaseSummary {
2222
/// from the SDK's `DatabaseDetailResponse` (see the `From` impl), keeping the
2323
/// `-o json`/`-o yaml` contract independent of the generated model's field order
2424
/// and `Option<Option<_>>` nullability.
25-
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
25+
#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
2626
pub struct Database {
2727
pub id: String,
2828
#[serde(default)]
@@ -36,7 +36,7 @@ pub struct Database {
3636
attachments: Vec<DatabaseAttachment>,
3737
}
3838

39-
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
39+
#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
4040
struct DatabaseAttachment {
4141
connection_id: String,
4242
alias: Option<String>,

0 commit comments

Comments
 (0)