mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Fmt
This commit is contained in:
parent
ed3e418426
commit
b450bc09f5
1 changed files with 19 additions and 8 deletions
|
@ -38,8 +38,12 @@ impl InlineQuery {
|
||||||
Self { id: id.into(), from, location: None, query: query.into(), offset: offset.into() }
|
Self { id: id.into(), from, location: None, query: query.into(), offset: offset.into() }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn id<S>(mut self, val: S) -> Self where S: Into<String> {
|
pub fn id<S>(mut self, val: S) -> Self
|
||||||
self.id = val.into();self
|
where
|
||||||
|
S: Into<String>,
|
||||||
|
{
|
||||||
|
self.id = val.into();
|
||||||
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn from(mut self, val: User) -> Self {
|
pub fn from(mut self, val: User) -> Self {
|
||||||
|
@ -52,12 +56,19 @@ impl InlineQuery {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn query<S>(mut self, val: S) -> Self where S: Into<String> {
|
pub fn query<S>(mut self, val: S) -> Self
|
||||||
self.query = val.into();self
|
where
|
||||||
|
S: Into<String>,
|
||||||
|
{
|
||||||
|
self.query = val.into();
|
||||||
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn offset<S>(mut self, val: S) -> Self where S: Into<String> {
|
pub fn offset<S>(mut self, val: S) -> Self
|
||||||
self.offset = val.into();self
|
where
|
||||||
|
S: Into<String>,
|
||||||
|
{
|
||||||
|
self.offset = val.into();
|
||||||
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue