pub struct TextDate {
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 text: RichText,
pub date: i32,
}Expand description
Generated from:
textDate#a5b45e2b 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 text:RichText date:int = RichTextFields§
§relative: bool§short_time: bool§long_time: bool§short_date: bool§long_date: bool§day_of_week: bool§text: RichText§date: i32Trait Implementations§
Source§impl Deserializable for TextDate
impl Deserializable for TextDate
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 Identifiable for TextDate
impl Identifiable for TextDate
Source§const CONSTRUCTOR_ID: u32 = 0xa5b45e2b
const CONSTRUCTOR_ID: u32 = 0xa5b45e2b
The constructor ID as specified in the TL schema.
Source§impl Serializable for TextDate
impl Serializable for TextDate
impl StructuralPartialEq for TextDate
Auto Trait Implementations§
impl Freeze for TextDate
impl RefUnwindSafe for TextDate
impl Send for TextDate
impl Sync for TextDate
impl Unpin for TextDate
impl UnsafeUnpin for TextDate
impl UnwindSafe for TextDate
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