mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +01:00
Add setters to MessageConnectedWebsite
This commit is contained in:
parent
2502a795a4
commit
23aa4842cf
1 changed files with 17 additions and 0 deletions
|
@ -397,6 +397,23 @@ pub struct MessageConnectedWebsite {
|
||||||
pub connected_website: String,
|
pub connected_website: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl MessageConnectedWebsite {
|
||||||
|
pub fn new<S>(connected_website: S) -> Self
|
||||||
|
where
|
||||||
|
S: Into<String>,
|
||||||
|
{
|
||||||
|
Self { connected_website: connected_website.into() }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn connected_website<S>(mut self, val: S) -> Self
|
||||||
|
where
|
||||||
|
S: Into<String>,
|
||||||
|
{
|
||||||
|
self.connected_website = val.into();
|
||||||
|
self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub struct MessagePassportData {
|
pub struct MessagePassportData {
|
||||||
|
|
Loading…
Add table
Reference in a new issue