From ef4c1cec446a18141c08165380795fdbdb47de0d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 16 Dec 2023 01:45:29 +0100 Subject: move assetrole struct to common --- common/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/src/lib.rs') 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, +} -- cgit v1.2.3-70-g09d2