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