Skip to content
New issue

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

ToScheam comflict with crate seaorm derive macro DeriveActiveEnum #1156

Open
799189288 opened this issue Oct 21, 2024 · 1 comment
Open

ToScheam comflict with crate seaorm derive macro DeriveActiveEnum #1156

799189288 opened this issue Oct 21, 2024 · 1 comment
Labels
investigate Futher investigation needed before other action

Comments

@799189288
Copy link

799189288 commented Oct 21, 2024

error message: multiple applicable items in scope,multiple name found.

seems like you define same function called name

use sea_orm::entity::prelude::{*};
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

#[derive(
    Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize, ToSchema,
)]
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "status_enum")]
pub enum StatusEnum {
    #[sea_orm(string_value = "draft")]
    Draft,
    #[sea_orm(string_value = "pend")]
    Pend,
    #[sea_orm(string_value = "post")]
    Post,
}
@juhaku
Copy link
Owner

juhaku commented Oct 21, 2024

Probably needs some investigation to evaluate whether there is something that can be done to resolve this issue.

@juhaku juhaku added the investigate Futher investigation needed before other action label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Futher investigation needed before other action
Projects
None yet
Development

No branches or pull requests

2 participants