You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: cannot find derive macro `Iden` in this scope
--> [redacted].rs:22:31
|
22 | derive(sea_orm::EnumIter, sea_orm::DeriveActiveEnum),
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: consider importing this derive macro:
sea_orm::Iden
= note: this error originates in the derive macro `sea_orm::DeriveActiveEnum` (in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot find attribute iden in this scope
--> [redacted].rs:22:31
|
22 | derive(sea_orm::EnumIter, sea_orm::DeriveActiveEnum),
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the derive macro sea_orm::DeriveActiveEnum (in Nightly builds, run with -Z macro-backtrace for more info)
error: cannot find derive macro EnumIter in this scope
--> [redacted].rs:22:31
|
22 | derive(sea_orm::EnumIter, sea_orm::DeriveActiveEnum),
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: consider importing this derive macro:
sea_orm::EnumIter
= note: this error originates in the derive macro sea_orm::DeriveActiveEnum (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound [redacted]Variant: sea_orm::Iterable is not satisfied
--> [redacted].rs:22:31
|
22 | derive(sea_orm::EnumIter, sea_orm::DeriveActiveEnum),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait sea_orm::Iterable is not implemented for [redacted]Variant
|
= help: the following other types implement trait sea_orm::Iterable:
domain::[redacted]
models::[redacted]::Column
models::[redacted]::PrimaryKey
models::[redacted]::Relation
= note: this error originates in the derive macro sea_orm::DeriveActiveEnum (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound [redacted]Enum: sea_orm::Iden is not satisfied
--> [redacted].rs:22:31
|
22 | derive(sea_orm::EnumIter, sea_orm::DeriveActiveEnum),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait sea_orm::Iden is not implemented for [redacted]Enum
|
= help: the following other types implement trait sea_orm::Iden:
models::[redacted]::Column
models::[redacted]::Entity
models::[redacted]::PrimaryKey
sea_orm::Identity
sea_orm::SelectA
sea_orm::SelectB
sea_orm::sea_query::Alias
sea_orm::sea_query::NullAlias
and 4 others
= note: required for the cast from [redacted]Enum to the object type dyn sea_orm::Iden
= note: this error originates in the derive macro sea_orm::DeriveActiveEnum (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named to_value found for reference &[redacted] in the current scope
--> [redacted].rs:22:31
|
22 | derive(sea_orm::EnumIter, sea_orm::DeriveActiveEnum),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in &[redacted]
|
= help: items from traits can only be used if the trait is in scope
= note: this error originates in the derive macro sea_orm::DeriveActiveEnum (in Nightly builds, run with -Z macro-backtrace for more info)
help: the following trait is implemented but not in scope; perhaps add a use for it:
|
1 | use sea_orm::ActiveEnum;
|
error: aborting due to 6 previous errors
Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277.
error: could not compile [redacted] due to 7 previous errors
With the import statement below, build succeeds:
use sea_orm::{sea_query,ActiveEnum,EnumIter,Iden};
Reproduces How Often
Always
Versions
Since v0.10.0
Additional Information
Our Cargo.toml includes:
sea-orm = { version = "0.10", features = ["sqlx-postgres", "runtime-tokio-rustls", "macros"] }
The text was updated successfully, but these errors were encountered:
Description
Since v0.10.0, deriving
DeriveActiveEnum
now requires these modules and types are imported outer the derive:sea_orm::sea_query
sea_orm::ActiveEnum
sea_orm::EnumIter
sea_orm::Iden
Steps to Reproduce
Expected Behavior
Built successfully.
Actual Behavior
Errors are occurred.
With the import statement below, build succeeds:
Reproduces How Often
Always
Versions
Since v0.10.0
Additional Information
Our Cargo.toml includes:
The text was updated successfully, but these errors were encountered: