mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-18 15:20:15 +01:00
cargo fmt
This commit is contained in:
parent
466ec638a4
commit
334ee73a40
1 changed files with 22 additions and 23 deletions
|
@ -1,8 +1,11 @@
|
||||||
use crate::core::network;
|
use crate::core::network;
|
||||||
use crate::core::requests::{ChatId, Request, RequestContext, RequestFuture, ResponseResult};
|
use crate::core::requests::{
|
||||||
|
ChatId, Request, RequestContext, RequestFuture, ResponseResult,
|
||||||
|
};
|
||||||
use crate::core::types::{Message, ReplyMarkup};
|
use crate::core::types::{Message, ReplyMarkup};
|
||||||
|
|
||||||
///Use this method to send phone contacts. On success, the sent Message is returned.
|
///Use this method to send phone contacts. On success, the sent Message is
|
||||||
|
/// returned.
|
||||||
#[derive(Debug, Clone, Serialize)]
|
#[derive(Debug, Clone, Serialize)]
|
||||||
struct SendContact<'a> {
|
struct SendContact<'a> {
|
||||||
#[serde(skip_serializing)]
|
#[serde(skip_serializing)]
|
||||||
|
@ -37,7 +40,6 @@ struct SendContact<'a> {
|
||||||
pub reply_markup: Option<ReplyMarkup>,
|
pub reply_markup: Option<ReplyMarkup>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl<'a> Request<'a> for SendContact<'a> {
|
impl<'a> Request<'a> for SendContact<'a> {
|
||||||
type ReturnValue = Message;
|
type ReturnValue = Message;
|
||||||
|
|
||||||
|
@ -54,7 +56,6 @@ impl<'a> Request<'a> for SendContact<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl<'a> SendContact<'a> {
|
impl<'a> SendContact<'a> {
|
||||||
pub(crate) fn new(
|
pub(crate) fn new(
|
||||||
ctx: RequestContext<'a>,
|
ctx: RequestContext<'a>,
|
||||||
|
@ -123,7 +124,6 @@ impl<'a> SendContact<'a> {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn reply_to_message_id<T>(mut self, reply_to_message_id: T) -> Self
|
pub fn reply_to_message_id<T>(mut self, reply_to_message_id: T) -> Self
|
||||||
where
|
where
|
||||||
T: Into<i32>,
|
T: Into<i32>,
|
||||||
|
@ -132,7 +132,6 @@ impl<'a> SendContact<'a> {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn reply_markup<T>(mut self, reply_markup: T) -> Self
|
pub fn reply_markup<T>(mut self, reply_markup: T) -> Self
|
||||||
where
|
where
|
||||||
T: Into<ReplyMarkup>,
|
T: Into<ReplyMarkup>,
|
||||||
|
|
Loading…
Reference in a new issue