pub struct MessageEntityCode {
pub offset: i32,
pub length: i32,
}Expand description
Fields§
§offset: i32§length: i32Trait Implementations§
Source§impl Clone for MessageEntityCode
impl Clone for MessageEntityCode
Source§fn clone(&self) -> MessageEntityCode
fn clone(&self) -> MessageEntityCode
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 MessageEntityCode
impl Debug for MessageEntityCode
Source§impl Deserializable for MessageEntityCode
impl Deserializable for MessageEntityCode
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<MessageEntityCode> for MessageEntity
impl From<MessageEntityCode> for MessageEntity
Source§fn from(x: MessageEntityCode) -> Self
fn from(x: MessageEntityCode) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageEntityCode
impl Identifiable for MessageEntityCode
Source§const CONSTRUCTOR_ID: u32 = 0x28a20571
const CONSTRUCTOR_ID: u32 = 0x28a20571
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageEntityCode
impl PartialEq for MessageEntityCode
Source§impl Serializable for MessageEntityCode
impl Serializable for MessageEntityCode
Source§impl TryFrom<MessageEntity> for MessageEntityCode
impl TryFrom<MessageEntity> for MessageEntityCode
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageEntityCode
Auto Trait Implementations§
impl Freeze for MessageEntityCode
impl RefUnwindSafe for MessageEntityCode
impl Send for MessageEntityCode
impl Sync for MessageEntityCode
impl Unpin for MessageEntityCode
impl UnsafeUnpin for MessageEntityCode
impl UnwindSafe for MessageEntityCode
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