aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/mimetypes.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-14 23:17:26 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-14 23:17:26 -0700
commit2c56f2b65bcf3b3f85db9d2a34501154c9c9404d (patch)
treed9580fb8578f6e1ea0f47dd1e6402ebd41d3a0e9 /rust/fatcat-api/src/mimetypes.rs
parente468707ee53f4a8ff75b00a1eec44921672464b6 (diff)
downloadfatcat-2c56f2b65bcf3b3f85db9d2a34501154c9c9404d.tar.gz
fatcat-2c56f2b65bcf3b3f85db9d2a34501154c9c9404d.zip
regenerated and pseudo-integrated
Diffstat (limited to 'rust/fatcat-api/src/mimetypes.rs')
-rw-r--r--rust/fatcat-api/src/mimetypes.rs313
1 files changed, 313 insertions, 0 deletions
diff --git a/rust/fatcat-api/src/mimetypes.rs b/rust/fatcat-api/src/mimetypes.rs
new file mode 100644
index 00000000..dfbff890
--- /dev/null
+++ b/rust/fatcat-api/src/mimetypes.rs
@@ -0,0 +1,313 @@
+/// mime types for requests and responses
+
+pub mod responses {
+ use hyper::mime::*;
+
+ // The macro is called per-operation to beat the recursion limit
+ /// Create Mime objects for the response content types for ContainerIdGet
+ lazy_static! {
+ pub static ref CONTAINER_ID_GET_FETCH_A_SINGLE_CONTAINER_BY_ID: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerIdGet
+ lazy_static! {
+ pub static ref CONTAINER_ID_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerIdGet
+ lazy_static! {
+ pub static ref CONTAINER_ID_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerLookupGet
+ lazy_static! {
+ pub static ref CONTAINER_LOOKUP_GET_FIND_A_SINGLE_CONTAINER_BY_EXTERNAL_IDENTIFER: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerLookupGet
+ lazy_static! {
+ pub static ref CONTAINER_LOOKUP_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerLookupGet
+ lazy_static! {
+ pub static ref CONTAINER_LOOKUP_GET_NO_SUCH_CONTAINER: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerLookupGet
+ lazy_static! {
+ pub static ref CONTAINER_LOOKUP_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerPost
+ lazy_static! {
+ pub static ref CONTAINER_POST_CREATED: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerPost
+ lazy_static! {
+ pub static ref CONTAINER_POST_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ContainerPost
+ lazy_static! {
+ pub static ref CONTAINER_POST_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorIdGet
+ lazy_static! {
+ pub static ref CREATOR_ID_GET_FETCH_A_SINGLE_CREATOR_BY_ID: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorIdGet
+ lazy_static! {
+ pub static ref CREATOR_ID_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorIdGet
+ lazy_static! {
+ pub static ref CREATOR_ID_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorLookupGet
+ lazy_static! {
+ pub static ref CREATOR_LOOKUP_GET_FIND_A_SINGLE_CREATOR_BY_EXTERNAL_IDENTIFER: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorLookupGet
+ lazy_static! {
+ pub static ref CREATOR_LOOKUP_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorLookupGet
+ lazy_static! {
+ pub static ref CREATOR_LOOKUP_GET_NO_SUCH_CREATOR: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorLookupGet
+ lazy_static! {
+ pub static ref CREATOR_LOOKUP_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorPost
+ lazy_static! {
+ pub static ref CREATOR_POST_CREATED: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorPost
+ lazy_static! {
+ pub static ref CREATOR_POST_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for CreatorPost
+ lazy_static! {
+ pub static ref CREATOR_POST_GENERIC_ERROR_RESPONSE: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupIdAcceptPost
+ lazy_static! {
+ pub static ref EDITGROUP_ID_ACCEPT_POST_MERGED_EDITGROUP_SUCCESSFULLY_: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupIdAcceptPost
+ lazy_static! {
+ pub static ref EDITGROUP_ID_ACCEPT_POST_EDITGROUP_IS_IN_AN_UNMERGABLE_STATE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupIdAcceptPost
+ lazy_static! {
+ pub static ref EDITGROUP_ID_ACCEPT_POST_NO_SUCH_EDITGROUP: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupIdAcceptPost
+ lazy_static! {
+ pub static ref EDITGROUP_ID_ACCEPT_POST_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupIdGet
+ lazy_static! {
+ pub static ref EDITGROUP_ID_GET_FETCH_EDITGROUP_BY_IDENTIFIER: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupIdGet
+ lazy_static! {
+ pub static ref EDITGROUP_ID_GET_NO_SUCH_EDITGROUP: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupIdGet
+ lazy_static! {
+ pub static ref EDITGROUP_ID_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupPost
+ lazy_static! {
+ pub static ref EDITGROUP_POST_SUCCESSFULLY_CREATED: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupPost
+ lazy_static! {
+ pub static ref EDITGROUP_POST_INVALID_REQUEST_PARAMETERS: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditgroupPost
+ lazy_static! {
+ pub static ref EDITGROUP_POST_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditorUsernameChangelogGet
+ lazy_static! {
+ pub static ref EDITOR_USERNAME_CHANGELOG_GET_FIND_CHANGES_: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditorUsernameChangelogGet
+ lazy_static! {
+ pub static ref EDITOR_USERNAME_CHANGELOG_GET_USERNAME_NOT_FOUND: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditorUsernameChangelogGet
+ lazy_static! {
+ pub static ref EDITOR_USERNAME_CHANGELOG_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditorUsernameGet
+ lazy_static! {
+ pub static ref EDITOR_USERNAME_GET_FETCH_GENERIC_INFORMATION_ABOUT_AN_EDITOR: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditorUsernameGet
+ lazy_static! {
+ pub static ref EDITOR_USERNAME_GET_USERNAME_NOT_FOUND: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for EditorUsernameGet
+ lazy_static! {
+ pub static ref EDITOR_USERNAME_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FileIdGet
+ lazy_static! {
+ pub static ref FILE_ID_GET_FETCH_A_SINGLE_FILE_BY_ID: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FileIdGet
+ lazy_static! {
+ pub static ref FILE_ID_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FileIdGet
+ lazy_static! {
+ pub static ref FILE_ID_GET_GENERIC_ERROR_RESPONSE: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FileLookupGet
+ lazy_static! {
+ pub static ref FILE_LOOKUP_GET_FIND_A_SINGLE_FILE_BY_EXTERNAL_IDENTIFER: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FileLookupGet
+ lazy_static! {
+ pub static ref FILE_LOOKUP_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FileLookupGet
+ lazy_static! {
+ pub static ref FILE_LOOKUP_GET_NO_SUCH_FILE: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FileLookupGet
+ lazy_static! {
+ pub static ref FILE_LOOKUP_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FilePost
+ lazy_static! {
+ pub static ref FILE_POST_CREATED: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FilePost
+ lazy_static! {
+ pub static ref FILE_POST_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for FilePost
+ lazy_static! {
+ pub static ref FILE_POST_GENERIC_ERROR_RESPONSE: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleaseIdGet
+ lazy_static! {
+ pub static ref RELEASE_ID_GET_FETCH_A_SINGLE_RELEASE_BY_ID: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleaseIdGet
+ lazy_static! {
+ pub static ref RELEASE_ID_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleaseIdGet
+ lazy_static! {
+ pub static ref RELEASE_ID_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleaseLookupGet
+ lazy_static! {
+ pub static ref RELEASE_LOOKUP_GET_FIND_A_SINGLE_RELEASE_BY_EXTERNAL_IDENTIFER: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleaseLookupGet
+ lazy_static! {
+ pub static ref RELEASE_LOOKUP_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleaseLookupGet
+ lazy_static! {
+ pub static ref RELEASE_LOOKUP_GET_NO_SUCH_RELEASE: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleaseLookupGet
+ lazy_static! {
+ pub static ref RELEASE_LOOKUP_GET_GENERIC_ERROR_RESPONSE: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleasePost
+ lazy_static! {
+ pub static ref RELEASE_POST_CREATED: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleasePost
+ lazy_static! {
+ pub static ref RELEASE_POST_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for ReleasePost
+ lazy_static! {
+ pub static ref RELEASE_POST_GENERIC_ERROR_RESPONSE: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for WorkIdGet
+ lazy_static! {
+ pub static ref WORK_ID_GET_FETCH_A_SINGLE_WORK_BY_ID: Mime =
+ "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for WorkIdGet
+ lazy_static! {
+ pub static ref WORK_ID_GET_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for WorkIdGet
+ lazy_static! {
+ pub static ref WORK_ID_GET_GENERIC_ERROR_RESPONSE: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for WorkPost
+ lazy_static! {
+ pub static ref WORK_POST_CREATED: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for WorkPost
+ lazy_static! {
+ pub static ref WORK_POST_BAD_REQUEST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the response content types for WorkPost
+ lazy_static! {
+ pub static ref WORK_POST_GENERIC_ERROR_RESPONSE: Mime = "application/json".parse().unwrap();
+ }
+
+}
+
+pub mod requests {
+ use hyper::mime::*;
+ /// Create Mime objects for the request content types for ContainerPost
+ lazy_static! {
+ pub static ref CONTAINER_POST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the request content types for CreatorPost
+ lazy_static! {
+ pub static ref CREATOR_POST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the request content types for FilePost
+ lazy_static! {
+ pub static ref FILE_POST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the request content types for ReleasePost
+ lazy_static! {
+ pub static ref RELEASE_POST: Mime = "application/json".parse().unwrap();
+ }
+ /// Create Mime objects for the request content types for WorkPost
+ lazy_static! {
+ pub static ref WORK_POST: Mime = "application/json".parse().unwrap();
+ }
+
+}