pub enum EnumType {
String(StringEnumType),
Database(DatabaseEnumType),
FieldRef(FieldRefEnumType),
}
Variants§
String(StringEnumType)
Generic, prisma-application specific string enum. Semantics are defined by the component interpreting the contents.
Database(DatabaseEnumType)
Enum from the internal data model, representing an enum on the database level.
FieldRef(FieldRefEnumType)
Enum referencing fields on a model.
Implementations§
source§impl EnumType
impl EnumType
pub fn name(&self) -> String
pub fn identifier(&self) -> &Identifier
pub fn database(identifier: Identifier, internal_enum: InternalEnum) -> Self
pub fn field_ref( identifier: Identifier, values: Vec<(String, ScalarFieldRef)> ) -> Self
pub fn string(identifier: Identifier, values: Vec<String>) -> Self
Trait Implementations§
source§impl PartialEq for EnumType
impl PartialEq for EnumType
impl StructuralPartialEq for EnumType
Auto Trait Implementations§
impl !RefUnwindSafe for EnumType
impl Send for EnumType
impl Sync for EnumType
impl Unpin for EnumType
impl !UnwindSafe for EnumType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more