diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-18 17:48:56 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-18 17:48:56 -0700 |
commit | edc000220baee1f91811345aba87bdab2d259c61 (patch) | |
tree | 63aa10810022cef6966ed3a436b4f5473004ff51 /rust/fatcat-openapi/src/models.rs | |
parent | de723a0815f35e1003f892a469bdf9f6b74d77af (diff) | |
download | fatcat-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.rs | 12 |
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")] |