We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[inspect(..)]
Derive macros can accept type/field attributes in the syntax #[attr(name = value)]. Let's add desired attributes to the Inspect macro!
#[attr(name = value)]
Inspect
#[inspect(with = "<function>")]
#[inspect(default = ..)]
enum
#[inspect(as = "<type>")]
Into
From
#[inspect(open = <bool>)]
#[inspect_slider(min = "-50.0", max = "50.0")]
#[inspect(no_tag)]
#[inspect(skip)]
#[inspect(read_only)]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Derive macros can accept type/field attributes in the syntax
#[attr(name = value)]
.Let's add desired attributes to the
Inspect
macro!Override
Manual
#[inspect(with = "<function>")]
(overriding inspection)#[inspect(default = ..)]
(overriding enum variant default value onenum
tag switch)Shortcut
#[inspect(as = "<type>")]
(Into
/From
conversion)Widget
#[inspect(open = <bool>)]
: (default open state of node)#[inspect_slider(min = "-50.0", max = "50.0")]
Options
Enum
#[inspect(no_tag)]
to disable tag selector (just show current tag)#[inspect(skip)]
over variantsOptions
#[inspect(read_only)]
#[inspect(skip)]
The text was updated successfully, but these errors were encountered: