pub struct Forward {
pub date: DateTime<Utc>,
pub from: ForwardedFrom,
pub signature: Option<String>,
pub message_id: Option<i32>,
}
Expand description
Information about forwarded message.
Fields§
§date: DateTime<Utc>
Date the original message was sent in Unix time.
from: ForwardedFrom
The entity that sent the original message.
signature: Option<String>
For messages forwarded from channels, signature of the post author if present. For messages forwarded from anonymous admins, authors title, if present.
message_id: Option<i32>
For messages forwarded from channels, identifier of the original message in the channel
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Forward
impl<'de> Deserialize<'de> for Forward
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Forward
Auto Trait Implementations§
impl Freeze for Forward
impl RefUnwindSafe for Forward
impl Send for Forward
impl Sync for Forward
impl Unpin for Forward
impl UnwindSafe for Forward
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more