mirror of
https://github.com/teloxide/teloxide.git
synced 2024-10-24 09:57:18 +02:00
Add setters to ForwardNonChannel
This commit is contained in:
parent
3e0f8ab686
commit
3c3a0aa474
1 changed files with 16 additions and 0 deletions
|
@ -505,6 +505,22 @@ pub struct ForwardNonChannel {
|
|||
pub from: ForwardedFrom,
|
||||
}
|
||||
|
||||
impl ForwardNonChannel {
|
||||
pub fn new(date: i32, from: ForwardedFrom) -> Self {
|
||||
Self { date, from }
|
||||
}
|
||||
|
||||
pub fn date(mut self, val: i32) -> Self {
|
||||
self.date = val;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn from(mut self, val: ForwardedFrom) -> Self {
|
||||
self.from = val;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[non_exhaustive]
|
||||
pub struct ForwardOrigin {
|
||||
|
|
Loading…
Reference in a new issue