mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
add snake case rename for all fields of enum
This commit is contained in:
parent
2b8bbf98b3
commit
60f3c822cf
1 changed files with 1 additions and 10 deletions
|
@ -21,26 +21,17 @@ struct SendChatAction<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, From, Clone)]
|
#[derive(Debug, Serialize, From, Clone)]
|
||||||
|
#[serde(rename_all = "snake_case")]
|
||||||
enum ChatAction {
|
enum ChatAction {
|
||||||
#[serde(rename = "typing")]
|
|
||||||
Typing,
|
Typing,
|
||||||
#[serde(rename = "upload_photo")]
|
|
||||||
UploadPhoto,
|
UploadPhoto,
|
||||||
#[serde(rename = "record_video")]
|
|
||||||
RecordVideo,
|
RecordVideo,
|
||||||
#[serde(rename = "upload_video")]
|
|
||||||
UploadVideo,
|
UploadVideo,
|
||||||
#[serde(rename = "record_audio")]
|
|
||||||
RecordAudio,
|
RecordAudio,
|
||||||
#[serde(rename = "upload_audio")]
|
|
||||||
UploadAudio,
|
UploadAudio,
|
||||||
#[serde(rename = "upload_document")]
|
|
||||||
UploadDocument,
|
UploadDocument,
|
||||||
#[serde(rename = "find_location")]
|
|
||||||
FindLocation,
|
FindLocation,
|
||||||
#[serde(rename = "record_video_note")]
|
|
||||||
RecordVideoNote,
|
RecordVideoNote,
|
||||||
#[serde(rename = "upload_video_note")]
|
|
||||||
UploadVideoNote,
|
UploadVideoNote,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue