Struct frankenstein::objects::MessageEntity
source · [−]pub struct MessageEntity {
pub type_field: MessageEntityType,
pub offset: u16,
pub length: u16,
pub url: Option<String>,
pub user: Option<User>,
pub language: Option<String>,
}
Fields
type_field: MessageEntityType
offset: u16
length: u16
url: Option<String>
user: Option<User>
language: Option<String>
Implementations
sourceimpl MessageEntity
impl MessageEntity
sourcepub fn builder() -> MessageEntityBuilder<((), (), (), (), (), ())>
pub fn builder() -> MessageEntityBuilder<((), (), (), (), (), ())>
Create a builder for building MessageEntity
.
On the builder, call .type_field(...)
, .offset(...)
, .length(...)
, .url(...)
(optional), .user(...)
(optional), .language(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of MessageEntity
.
Trait Implementations
sourceimpl Clone for MessageEntity
impl Clone for MessageEntity
sourcefn clone(&self) -> MessageEntity
fn clone(&self) -> MessageEntity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MessageEntity
impl Debug for MessageEntity
sourceimpl<'de> Deserialize<'de> for MessageEntity
impl<'de> Deserialize<'de> for MessageEntity
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<MessageEntity> for MessageEntity
impl PartialEq<MessageEntity> for MessageEntity
sourcefn eq(&self, other: &MessageEntity) -> bool
fn eq(&self, other: &MessageEntity) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MessageEntity) -> bool
fn ne(&self, other: &MessageEntity) -> bool
This method tests for !=
.
sourceimpl Serialize for MessageEntity
impl Serialize for MessageEntity
impl StructuralPartialEq for MessageEntity
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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