Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SeaORM/docs/04-generate-entity/04-enumeration.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For string enums, in addition to being able to specify the string value for each
#[sea_orm(rs_type = "String", db_type = "String(StringLen::None)", rename_all = "camelCase")]
pub enum Category {
BigTask,
SmallWork,
SmallBreak,
}
```

Expand All @@ -24,7 +24,7 @@ pub enum Category {
#[sea_orm(string_value = "bigTask")]
BigTask,
#[sea_orm(string_value = "smallBreak")]
SmallWork,
SmallBreak,
}
```

Expand Down Expand Up @@ -56,7 +56,7 @@ You have to provide custom `from_str` and `to_str` implementations.
#[sea_orm(value_type = "String")]
pub enum Category {
BigTask,
SmallWork,
SmallBreak,
}
```

Expand Down
Loading