pub struct TextPlain {
pub text: String,
}Expand description
Fields§
§text: StringTrait Implementations§
Source§impl Deserializable for TextPlain
impl Deserializable for TextPlain
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 Identifiable for TextPlain
impl Identifiable for TextPlain
Source§const CONSTRUCTOR_ID: u32 = 0x744694e0
const CONSTRUCTOR_ID: u32 = 0x744694e0
The constructor ID as specified in the TL schema.
Source§impl Serializable for TextPlain
impl Serializable for TextPlain
impl StructuralPartialEq for TextPlain
Auto Trait Implementations§
impl Freeze for TextPlain
impl RefUnwindSafe for TextPlain
impl Send for TextPlain
impl Sync for TextPlain
impl Unpin for TextPlain
impl UnsafeUnpin for TextPlain
impl UnwindSafe for TextPlain
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