Derive Macro edgedb_query_derive::EdgedbEnum
source · [−]#[derive(EdgedbEnum)]
{
// Attributes available to this derive:
#[value]
}
Expand description
EdgedbEnum creates implementations of following traits for the annotated struct :
- edgedb_query::ToEdgeValue
- edgedb_query::ToEdgeQl
- edgedb_query::ToEdgeScalar
- ToString
Usage
#[EdgedbEnum]
pub enum TodoStatus {
#[value("TodoReady")]
Ready,
#[value("TodoComplete")]
Complete
}