mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +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,
|
||||
}
|
||||
|
||||
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)]
|
||||
#[non_exhaustive]
|
||||
pub struct MessagePassportData {
|
||||
|
|
Loading…
Reference in a new issue