pub struct SendCustomRequest {
pub method: String,
pub parameters: String,
}
Expand description
Sends a custom request; for bots only
Fields§
§method: String
The method name
parameters: String
JSON-serialized method parameters
Trait Implementations§
Source§impl Clone for SendCustomRequest
impl Clone for SendCustomRequest
Source§fn clone(&self) -> SendCustomRequest
fn clone(&self) -> SendCustomRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SendCustomRequest
impl Debug for SendCustomRequest
Source§impl<'de> Deserialize<'de> for SendCustomRequest
impl<'de> Deserialize<'de> for SendCustomRequest
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
Source§impl Method for SendCustomRequest
impl Method for SendCustomRequest
Auto Trait Implementations§
impl Freeze for SendCustomRequest
impl RefUnwindSafe for SendCustomRequest
impl Send for SendCustomRequest
impl Sync for SendCustomRequest
impl Unpin for SendCustomRequest
impl UnwindSafe for SendCustomRequest
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