Struct tdlib_types::types::FormattedText
source · pub struct FormattedText {
pub text: String,
pub entities: Vec<TextEntity>,
}
Expand description
A text with some entities
Fields
text: String
The text
entities: Vec<TextEntity>
Entities contained in the text
Trait Implementations
sourceimpl Clone for FormattedText
impl Clone for FormattedText
sourcefn clone(&self) -> FormattedText
fn clone(&self) -> FormattedText
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 moresourceimpl Debug for FormattedText
impl Debug for FormattedText
sourceimpl<'de> Deserialize<'de> for FormattedText
impl<'de> Deserialize<'de> for FormattedText
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 Serialize for FormattedText
impl Serialize for FormattedText
Auto Trait Implementations
impl RefUnwindSafe for FormattedText
impl Send for FormattedText
impl Sync for FormattedText
impl Unpin for FormattedText
impl UnwindSafe for FormattedText
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