Minimal trait bounds

This commit is contained in:
Billy Chan 2021-10-20 12:17:30 +08:00
parent 30e17a26d9
commit e177a338c4
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -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;