pub struct Response {
pub ok: bool,
pub result: Option<Value>,
pub error_code: Option<i64>,
pub description: Option<String>,
pub parameters: Option<ResponseParameters>,
}Expand description
Hardcoded serde_json “Response” from telegram bot api. We can’t genearate this so declare it here
Fields§
§ok: bool§result: Option<Value>§error_code: Option<i64>§description: Option<String>§parameters: Option<ResponseParameters>Trait Implementations§
source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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