mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
added True and False types
This commit is contained in:
parent
4a0e601063
commit
1e0f60bdef
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ use reqwest::StatusCode;
|
|||
|
||||
use crate::{
|
||||
requests::ResponseResult, types::ResponseParameters, RequestError,
|
||||
types::{True, False}
|
||||
};
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
@ -10,14 +11,14 @@ pub enum TelegramResponse<R> {
|
|||
Ok {
|
||||
/// A dummy field. Used only for deserialization.
|
||||
#[allow(dead_code)]
|
||||
ok: bool, // TODO: True type
|
||||
ok: True,
|
||||
|
||||
result: R,
|
||||
},
|
||||
Err {
|
||||
/// A dummy field. Used only for deserialization.
|
||||
#[allow(dead_code)]
|
||||
ok: bool, // TODO: False type
|
||||
ok: False,
|
||||
|
||||
description: String,
|
||||
error_code: u16,
|
||||
|
|
Loading…
Add table
Reference in a new issue