From 8e3038e55282088825a1243a34f2d9f7d25e5533 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 10 May 2019 11:50:05 -0700 Subject: impl withdrawn_status --- rust/fatcat-api-spec/README.md | 2 +- rust/fatcat-api-spec/api.yaml | 2 +- rust/fatcat-api-spec/api/swagger.yaml | 4 ++-- rust/fatcat-api-spec/src/models.rs | 6 +++--- rust/src/database_models.rs | 4 ++-- rust/src/database_schema.rs | 2 +- rust/src/entity_crud.rs | 6 +++--- 7 files changed, 13 insertions(+), 13 deletions(-) (limited to 'rust') diff --git a/rust/fatcat-api-spec/README.md b/rust/fatcat-api-spec/README.md index 0e78b5ef..4a23371e 100644 --- a/rust/fatcat-api-spec/README.md +++ b/rust/fatcat-api-spec/README.md @@ -13,7 +13,7 @@ To see how to make this your own, look here: [README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md) - API version: 0.2.0 -- Build date: 2019-05-10T06:21:30.192Z +- Build date: 2019-05-10T18:47:50.409Z This autogenerated project defines an API crate `fatcat` which contains: * An `Api` trait defining the API in Rust. diff --git a/rust/fatcat-api-spec/api.yaml b/rust/fatcat-api-spec/api.yaml index 9f4de5a5..389ba24e 100644 --- a/rust/fatcat-api-spec/api.yaml +++ b/rust/fatcat-api-spec/api.yaml @@ -367,7 +367,7 @@ definitions: type: integer example: 2014 format: int64 - withdrawn_state: + withdrawn_status: type: string withdrawn_date: type: string diff --git a/rust/fatcat-api-spec/api/swagger.yaml b/rust/fatcat-api-spec/api/swagger.yaml index 8e6514eb..a3fb7053 100644 --- a/rust/fatcat-api-spec/api/swagger.yaml +++ b/rust/fatcat-api-spec/api/swagger.yaml @@ -7877,7 +7877,7 @@ definitions: withdrawn_date: type: "string" format: "date" - withdrawn_state: + withdrawn_status: type: "string" release_year: type: "integer" @@ -8042,9 +8042,9 @@ definitions: timestamp: "2000-01-23T04:56:07.000+00:00" revision: "86daea5b-1b6b-432a-bb67-ea97795f80fe" ident: "q3nouwy3nnbsvo3h5klxsx4a7y" + withdrawn_status: "withdrawn_status" language: "language" title: "title" - withdrawn_state: "withdrawn_state" contribs: - raw_affiliation: "raw_affiliation" creator: diff --git a/rust/fatcat-api-spec/src/models.rs b/rust/fatcat-api-spec/src/models.rs index f4ac0e3e..bf989b84 100644 --- a/rust/fatcat-api-spec/src/models.rs +++ b/rust/fatcat-api-spec/src/models.rs @@ -840,9 +840,9 @@ pub struct ReleaseEntity { #[serde(skip_serializing_if = "Option::is_none")] pub withdrawn_date: Option, - #[serde(rename = "withdrawn_state")] + #[serde(rename = "withdrawn_status")] #[serde(skip_serializing_if = "Option::is_none")] - pub withdrawn_state: Option, + pub withdrawn_status: Option, #[serde(rename = "release_year")] #[serde(skip_serializing_if = "Option::is_none")] @@ -958,7 +958,7 @@ impl ReleaseEntity { doi: None, withdrawn_year: None, withdrawn_date: None, - withdrawn_state: None, + withdrawn_status: None, release_year: None, release_date: None, release_stage: None, diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index e37a6f18..3ee7552c 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -402,7 +402,7 @@ pub struct ReleaseRevRow { pub number: Option, pub version: Option, pub subtitle: Option, - pub withdrawn_state: Option, + pub withdrawn_status: Option, pub withdrawn_date: Option, pub withdrawn_year: Option, pub mag_id: Option, @@ -439,7 +439,7 @@ pub struct ReleaseRevNewRow { pub number: Option, pub version: Option, pub subtitle: Option, - pub withdrawn_state: Option, + pub withdrawn_status: Option, pub withdrawn_date: Option, pub withdrawn_year: Option, pub mag_id: Option, diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs index b7dee298..ae6a5464 100644 --- a/rust/src/database_schema.rs +++ b/rust/src/database_schema.rs @@ -319,7 +319,7 @@ table! { number -> Nullable, version -> Nullable, subtitle -> Nullable, - withdrawn_state -> Nullable, + withdrawn_status -> Nullable, withdrawn_date -> Nullable, withdrawn_year -> Nullable, mag_id -> Nullable, diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs index 4a7cdee0..d141e838 100644 --- a/rust/src/entity_crud.rs +++ b/rust/src/entity_crud.rs @@ -1624,7 +1624,7 @@ impl EntityCrud for ReleaseEntity { release_stage: None, release_date: None, release_year: None, - withdrawn_state: None, + withdrawn_status: None, withdrawn_date: None, withdrawn_year: None, doi: None, @@ -1924,7 +1924,7 @@ impl EntityCrud for ReleaseEntity { release_stage: rev_row.release_stage, release_date: rev_row.release_date, release_year: rev_row.release_year, - withdrawn_state: rev_row.withdrawn_state, + withdrawn_status: rev_row.withdrawn_status, withdrawn_date: rev_row.withdrawn_date, withdrawn_year: rev_row.withdrawn_year, doi: rev_row.doi, @@ -2089,7 +2089,7 @@ impl EntityCrud for ReleaseEntity { release_stage: model.release_stage.clone(), release_date: model.release_date, release_year: model.release_year, - withdrawn_state: model.withdrawn_state.clone(), + withdrawn_status: model.withdrawn_status.clone(), withdrawn_date: model.withdrawn_date, withdrawn_year: model.withdrawn_year, doi: model.doi.clone(), -- cgit v1.2.3