pub struct DraftMessage {
pub no_webpage: bool,
pub invert_media: bool,
pub reply_to: Option<InputReplyTo>,
pub message: String,
pub entities: Option<Vec<MessageEntity>>,
pub media: Option<InputMedia>,
pub date: i32,
pub effect: Option<i64>,
pub suggested_post: Option<SuggestedPost>,
}Expand description
Generated from:
draftMessage#96eaa5eb flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo message:string entities:flags.3?Vector<MessageEntity> media:flags.5?InputMedia date:int effect:flags.7?long suggested_post:flags.8?SuggestedPost = DraftMessageFields§
§no_webpage: bool§invert_media: bool§reply_to: Option<InputReplyTo>§message: String§entities: Option<Vec<MessageEntity>>§media: Option<InputMedia>§date: i32§effect: Option<i64>§suggested_post: Option<SuggestedPost>Trait Implementations§
Source§impl Clone for DraftMessage
impl Clone for DraftMessage
Source§fn clone(&self) -> DraftMessage
fn clone(&self) -> DraftMessage
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 DraftMessage
impl Debug for DraftMessage
Source§impl Deserializable for DraftMessage
impl Deserializable for DraftMessage
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<DraftMessage> for DraftMessage
impl From<DraftMessage> for DraftMessage
Source§fn from(x: DraftMessage) -> Self
fn from(x: DraftMessage) -> Self
Converts to this type from the input type.
Source§impl Identifiable for DraftMessage
impl Identifiable for DraftMessage
Source§const CONSTRUCTOR_ID: u32 = 0x96eaa5eb
const CONSTRUCTOR_ID: u32 = 0x96eaa5eb
The constructor ID as specified in the TL schema.
Source§impl PartialEq for DraftMessage
impl PartialEq for DraftMessage
Source§impl Serializable for DraftMessage
impl Serializable for DraftMessage
Source§impl TryFrom<DraftMessage> for DraftMessage
impl TryFrom<DraftMessage> for DraftMessage
Source§type Error = DraftMessage
type Error = DraftMessage
The type returned in the event of a conversion error.
impl StructuralPartialEq for DraftMessage
Auto Trait Implementations§
impl Freeze for DraftMessage
impl RefUnwindSafe for DraftMessage
impl Send for DraftMessage
impl Sync for DraftMessage
impl Unpin for DraftMessage
impl UnsafeUnpin for DraftMessage
impl UnwindSafe for DraftMessage
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