aboutsummaryrefslogtreecommitdiff
path: root/common/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r--common/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 8292e87..1a08750 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -147,3 +147,11 @@ pub enum SourceTrackKind {
},
Subtitles,
}
+
+#[rustfmt::skip]
+#[derive(Debug, Clone, Copy)]
+#[cfg_attr(feature = "rocket", derive(FromFormField, UriDisplayQuery))]
+pub enum AssetRole {
+ #[cfg_attr(feature = "rocket", field(value = "poster"))] Poster,
+ #[cfg_attr(feature = "rocket", field(value = "backdrop"))] Backdrop,
+}