Minimal trait bounds
This commit is contained in:
parent
30e17a26d9
commit
e177a338c4
@ -1,9 +1,8 @@
|
||||
use crate::{ColumnDef, DbErr, TryGetable};
|
||||
use sea_query::{Nullable, Value, ValueType};
|
||||
use std::fmt::Debug;
|
||||
|
||||
pub trait ActiveEnum: Sized {
|
||||
type Value: Sized + Send + Debug + PartialEq + Into<Value> + ValueType + Nullable + TryGetable;
|
||||
type Value: Into<Value> + ValueType + Nullable + TryGetable;
|
||||
|
||||
fn to_value(&self) -> Self::Value;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user