mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +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,
|
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 {
|
mod getters {
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue