submissions-api: add eq to select types

This commit is contained in:
Quaternions 2024-12-18 18:57:39 -08:00
parent 246b8a7dc8
commit b782b1ae64

View File

@ -60,7 +60,7 @@ pub async fn response_ok(response:reqwest::Response)->Result<reqwest::Response,R
} }
} }
#[derive(Clone,Copy,serde::Serialize,serde::Deserialize)] #[derive(Clone,Copy,PartialEq,Eq,serde::Serialize,serde::Deserialize)]
pub struct ScriptID(pub(crate)i64); pub struct ScriptID(pub(crate)i64);
#[derive(Clone,Copy,serde::Serialize,serde::Deserialize)] #[derive(Clone,Copy,serde::Serialize,serde::Deserialize)]
pub struct ScriptPolicyID(pub(crate)i64); pub struct ScriptPolicyID(pub(crate)i64);
@ -104,7 +104,7 @@ pub struct ScriptIDResponse{
pub ID:ScriptID, pub ID:ScriptID,
} }
#[derive(serde_repr::Serialize_repr,serde_repr::Deserialize_repr)] #[derive(PartialEq,Eq,serde_repr::Serialize_repr,serde_repr::Deserialize_repr)]
#[repr(i32)] #[repr(i32)]
pub enum Policy{ pub enum Policy{
None=0, // not yet reviewed None=0, // not yet reviewed