MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / as_enum

Method as_enum

src/entity/active_enum.rs:137–139  ·  view source on GitHub ↗

Construct a enum expression with casting

(&self)

Source from the content-addressed store, hash-verified

135
136 /// Construct a enum expression with casting
137 fn as_enum(&self) -> SimpleExpr {
138 Expr::val(Self::to_value(self)).as_enum(Self::name())
139 }
140
141 /// Get the name of all enum variants
142 fn values() -> Vec<Self::Value> {

Callers 5

select_enum_asMethod · 0.80
save_enum_asMethod · 0.80
create_tablesFunction · 0.80
upMethod · 0.80

Implementers 1

active_enum_stringsrc/entity/active_enum.rs

Calls 1

nameFunction · 0.85

Tested by 1

upMethod · 0.64