SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
6.96k stars 486 forks source link

error[E0407]: method `into_active_option_value` is not a member of trait `IntoActiveValue` #811

Closed jacksoom closed 2 years ago

jacksoom commented 2 years ago

Description

error[E0407]: method into_active_option_value is not a member of trait IntoActiveValue --> /Users/jacksoom/.cargo/registry/src/github.com-1ecc6299db9ec823/sea-orm-0.8.0/src/entity/active_model.rs:660:13 660 fn into_active_option_value(self) -> ActiveValue<Option<$ty>> { ^ ------------------------ help: there is an associated function with a similar name: into_active_value _____
661 match self {
662 Some(value) => Set(Some(value)),
663 None => NotSet,
664 }
665 }
_____^ not a member of trait IntoActiveValue
... 723 impl_into_active_value!(crate::prelude::Decimal); ------------------------------------------------ in this macro invocation
= note: this error originates in the macro `impl_into_active_value` (in Nightly builds, run with -Z macro-backtrace for more info)

Steps to Reproduce

  1. cargo check

Expected Behavior

Actual Behavior

Reproduces How Often

Versions

cargo 1.63.0-nightly (8d42b0e87 2022-06-17) sea-orm version = "0.8.0"

Additional Information

billy1624 commented 2 years ago

Hey @jacksoom, welcome! Was it a typo? I guess you want the into_active_value method?