mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-11-20 15:31:54 +01:00
chore: update deps
This commit is contained in:
parent
b68e4b4af9
commit
3a3888a2d6
3 changed files with 86 additions and 95 deletions
|
|
@ -52,16 +52,11 @@ where
|
|||
}
|
||||
|
||||
#[cfg(feature = "schema")]
|
||||
pub fn schema_layer(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema {
|
||||
use schemars::JsonSchema;
|
||||
let mut schema: schemars::schema::SchemaObject = <String>::json_schema(generator).into();
|
||||
schema.enum_values = Some(vec![
|
||||
"background".into(),
|
||||
"bottom".into(),
|
||||
"top".into(),
|
||||
"overlay".into(),
|
||||
]);
|
||||
schema.into()
|
||||
pub fn schema_layer(_generator: &mut schemars::SchemaGenerator) -> schemars::Schema {
|
||||
schemars::json_schema!({
|
||||
"type": "string",
|
||||
"enum": ["background", "bottom", "top", "overlay"],
|
||||
})
|
||||
}
|
||||
|
||||
impl BarPosition {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue