Struct telegram_api_rs::objects::MessageEntity
source · pub struct MessageEntity {
pub typ: MessageEntityType,
pub offset: i32,
pub length: i32,
pub url: Option<String>,
pub user: Option<User>,
pub language: Option<String>,
}
Fields
typ: MessageEntityType
offset: i32
length: i32
url: Option<String>
user: Option<User>
language: Option<String>
Implementations
sourceimpl MessageEntity
impl MessageEntity
pub fn from_json(data: JsonValue) -> MessageEntity
pub fn to_json(&self) -> JsonValue
pub fn empty() -> MessageEntity
Trait Implementations
sourceimpl Clone for MessageEntity
impl Clone for MessageEntity
sourceimpl Display for MessageEntity
impl Display for MessageEntity
sourceimpl From<MessageEntity> for JsonValue
impl From<MessageEntity> for JsonValue
sourcefn from(u: MessageEntity) -> Self
fn from(u: MessageEntity) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for MessageEntity
impl Send for MessageEntity
impl Sync for MessageEntity
impl Unpin for MessageEntity
impl UnwindSafe for MessageEntity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more