Skip to main content

lux_lib/remote/package/
kind.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Serialize, Deserialize, Debug)]
4#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
5pub struct FilterSpec {
6    /// Include Rockspec
7    pub rockspec: bool,
8    /// Include Src
9    pub src: bool,
10    /// Include Binary
11    pub binary: bool,
12}
13
14impl Default for FilterSpec {
15    fn default() -> Self {
16        Self {
17            rockspec: true,
18            src: true,
19            binary: true,
20        }
21    }
22}