From f3c3e6324c0e66168f373f84583e28b5979446c2 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Sat, 5 Nov 2022 09:38:43 +0100 Subject: [PATCH] Improve formatting --- crates/fj/src/models/metadata.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/fj/src/models/metadata.rs b/crates/fj/src/models/metadata.rs index dffa9fa92..398ab3be4 100644 --- a/crates/fj/src/models/metadata.rs +++ b/crates/fj/src/models/metadata.rs @@ -4,16 +4,22 @@ pub struct Metadata { /// A short, human-friendly name used to identify this module. pub name: String, + /// A semver-compliant version number. pub version: String, + /// A short, one-line description. pub short_description: Option, + /// A more elaborate description. pub description: Option, + /// A link to the homepage. pub homepage: Option, + /// A link to the source code. pub repository: Option, + /// The name of the software license(s) this software is released under. /// /// This is interpreted as a SPDX license expression (e.g. `MIT OR @@ -120,8 +126,10 @@ impl Metadata { pub struct ModelMetadata { /// A short, human-friendly name used to identify this model. pub name: String, + /// A description of what this model does. pub description: Option, + /// Arguments that the model uses when calculating its geometry. pub arguments: Vec, } @@ -171,9 +179,11 @@ impl ModelMetadata { pub struct ArgumentMetadata { /// The name used to refer to this argument. pub name: String, + /// A short description of this argument that could be shown to the user /// in something like a tooltip. pub description: Option, + /// Something that could be used as a default if no value was provided. pub default_value: Option, }