From edc000220baee1f91811345aba87bdab2d259c61 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 18 Sep 2019 17:48:56 -0700 Subject: codegen rust v0.3.1 --- rust/fatcat-openapi/src/models.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rust/fatcat-openapi/src/models.rs') 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 @@ -54,6 +54,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. -- cgit v1.2.3