pub struct MessageEntityFormattedDate {
pub relative: bool,
pub short_time: bool,
pub long_time: bool,
pub short_date: bool,
pub long_date: bool,
pub day_of_week: bool,
pub offset: i32,
pub length: i32,
pub date: i32,
}Expand description
Generated from:
messageEntityFormattedDate#904ac7c7 flags:# relative:flags.0?true short_time:flags.1?true long_time:flags.2?true short_date:flags.3?true long_date:flags.4?true day_of_week:flags.5?true offset:int length:int date:int = MessageEntityFields§
§relative: bool§short_time: bool§long_time: bool§short_date: bool§long_date: bool§day_of_week: bool§offset: i32§length: i32§date: i32Trait Implementations§
Source§impl Clone for MessageEntityFormattedDate
impl Clone for MessageEntityFormattedDate
Source§fn clone(&self) -> MessageEntityFormattedDate
fn clone(&self) -> MessageEntityFormattedDate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageEntityFormattedDate
impl Debug for MessageEntityFormattedDate
Source§impl Deserializable for MessageEntityFormattedDate
impl Deserializable for MessageEntityFormattedDate
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<MessageEntityFormattedDate> for MessageEntity
impl From<MessageEntityFormattedDate> for MessageEntity
Source§fn from(x: MessageEntityFormattedDate) -> Self
fn from(x: MessageEntityFormattedDate) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageEntityFormattedDate
impl Identifiable for MessageEntityFormattedDate
Source§const CONSTRUCTOR_ID: u32 = 0x904ac7c7
const CONSTRUCTOR_ID: u32 = 0x904ac7c7
The constructor ID as specified in the TL schema.
Source§impl TryFrom<MessageEntity> for MessageEntityFormattedDate
impl TryFrom<MessageEntity> for MessageEntityFormattedDate
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageEntityFormattedDate
Auto Trait Implementations§
impl Freeze for MessageEntityFormattedDate
impl RefUnwindSafe for MessageEntityFormattedDate
impl Send for MessageEntityFormattedDate
impl Sync for MessageEntityFormattedDate
impl Unpin for MessageEntityFormattedDate
impl UnsafeUnpin for MessageEntityFormattedDate
impl UnwindSafe for MessageEntityFormattedDate
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