Implement derive(ValidateSchema)
macro for generating cel validation on CRDs
#3575
Annotations
6 warnings
unused imports: `FromAttributes`, `IdentString`, `NestedMeta`, `path_to_string`, `self`, and `self`:
kube-derive/src/custom_resource.rs#L4
warning: unused imports: `FromAttributes`, `IdentString`, `NestedMeta`, `path_to_string`, `self`, and `self`
--> kube-derive/src/custom_resource.rs:4:11
|
4 | ast::{self, NestedMeta},
| ^^^^ ^^^^^^^^^^
5 | util::{self, path_to_string, IdentString},
| ^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^
6 | FromAttributes, FromDeriveInput, FromField, FromMeta,
| ^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused imports: `Attribute`, `DataStruct`, `FieldsNamed`, `Type`, and `parse::Parser as _`:
kube-derive/src/custom_resource.rs#L11
warning: unused imports: `Attribute`, `DataStruct`, `FieldsNamed`, `Type`, and `parse::Parser as _`
--> kube-derive/src/custom_resource.rs:11:5
|
11 | parse::Parser as _, parse_quote, spanned::Spanned, Attribute, Data, DataStruct, DeriveInput, Expr,
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^
12 | FieldsNamed, Path, Type, Visibility,
| ^^^^^^^^^^^ ^^^^
|
unused import: `spanned::Spanned`:
kube-derive/src/custom_resource.rs#L11
warning: unused import: `spanned::Spanned`
--> kube-derive/src/custom_resource.rs:11:38
|
11 | parse::Parser as _, parse_quote, spanned::Spanned, Attribute, Data, DataStruct, DeriveInput, Expr,
| ^^^^^^^^^^^^^^^^
|
unused imports: `FromAttributes`, `IdentString`, `NestedMeta`, `path_to_string`, `self`, and `self`:
kube-derive/src/custom_resource.rs#L4
warning: unused imports: `FromAttributes`, `IdentString`, `NestedMeta`, `path_to_string`, `self`, and `self`
--> kube-derive/src/custom_resource.rs:4:11
|
4 | ast::{self, NestedMeta},
| ^^^^ ^^^^^^^^^^
5 | util::{self, path_to_string, IdentString},
| ^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^
6 | FromAttributes, FromDeriveInput, FromField, FromMeta,
| ^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused imports: `Attribute`, `DataStruct`, `FieldsNamed`, `Type`, and `parse::Parser as _`:
kube-derive/src/custom_resource.rs#L11
warning: unused imports: `Attribute`, `DataStruct`, `FieldsNamed`, `Type`, and `parse::Parser as _`
--> kube-derive/src/custom_resource.rs:11:5
|
11 | parse::Parser as _, parse_quote, spanned::Spanned, Attribute, Data, DataStruct, DeriveInput, Expr,
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^
12 | FieldsNamed, Path, Type, Visibility,
| ^^^^^^^^^^^ ^^^^
|
unused import: `spanned::Spanned`:
kube-derive/src/custom_resource.rs#L11
warning: unused import: `spanned::Spanned`
--> kube-derive/src/custom_resource.rs:11:38
|
11 | parse::Parser as _, parse_quote, spanned::Spanned, Attribute, Data, DataStruct, DeriveInput, Expr,
| ^^^^^^^^^^^^^^^^
|