mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
Add setters to MediaVenue
This commit is contained in:
parent
f7769d0d97
commit
e1e0bd2d89
1 changed files with 11 additions and 0 deletions
|
@ -1037,6 +1037,17 @@ pub struct MediaVenue {
|
|||
pub venue: Venue,
|
||||
}
|
||||
|
||||
impl MediaVenue {
|
||||
pub fn new(venue: Venue) -> Self {
|
||||
Self { venue }
|
||||
}
|
||||
|
||||
pub fn venue(mut self, val: Venue) -> Self {
|
||||
self.venue = val;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
mod getters {
|
||||
use std::ops::Deref;
|
||||
|
||||
|
|
Loading…
Reference in a new issue