mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Add setters to MessageSuccessfulPayment
This commit is contained in:
parent
19eeec124b
commit
2502a795a4
1 changed files with 11 additions and 0 deletions
|
@ -376,6 +376,17 @@ pub struct MessageSuccessfulPayment {
|
|||
pub successful_payment: SuccessfulPayment,
|
||||
}
|
||||
|
||||
impl MessageSuccessfulPayment {
|
||||
pub fn new(successful_payment: SuccessfulPayment) -> Self {
|
||||
Self { successful_payment }
|
||||
}
|
||||
|
||||
pub fn successful_payment(mut self, val: SuccessfulPayment) -> Self {
|
||||
self.successful_payment = val;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[non_exhaustive]
|
||||
pub struct MessageConnectedWebsite {
|
||||
|
|
Loading…
Reference in a new issue