summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-18 17:48:56 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-18 17:48:56 -0700
commitedc000220baee1f91811345aba87bdab2d259c61 (patch)
tree63aa10810022cef6966ed3a436b4f5473004ff51 /rust/fatcat-openapi/src/models.rs
parentde723a0815f35e1003f892a469bdf9f6b74d77af (diff)
downloadfatcat-edc000220baee1f91811345aba87bdab2d259c61.tar.gz
fatcat-edc000220baee1f91811345aba87bdab2d259c61.zip
codegen rust v0.3.1
Diffstat (limited to 'rust/fatcat-openapi/src/models.rs')
-rw-r--r--rust/fatcat-openapi/src/models.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/rust/fatcat-openapi/src/models.rs b/rust/fatcat-openapi/src/models.rs
index e9e527f5..2f648ccd 100644
--- a/rust/fatcat-openapi/src/models.rs
+++ b/rust/fatcat-openapi/src/models.rs
@@ -55,6 +55,18 @@ impl AuthOidcResult {
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
+pub struct AuthTokenResult {
+ #[serde(rename = "token")]
+ pub token: String,
+}
+
+impl AuthTokenResult {
+ pub fn new(token: String) -> AuthTokenResult {
+ AuthTokenResult { token: token }
+ }
+}
+
+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ChangelogEntry {
/// Monotonically increasing sequence number of this changelog entry.
#[serde(rename = "index")]