pub struct TextAnchor {
pub text: RichText,
pub name: String,
}Expand description
Fields§
§text: RichText§name: StringTrait Implementations§
Source§impl Clone for TextAnchor
impl Clone for TextAnchor
Source§fn clone(&self) -> TextAnchor
fn clone(&self) -> TextAnchor
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 TextAnchor
impl Debug for TextAnchor
Source§impl Deserializable for TextAnchor
impl Deserializable for TextAnchor
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<TextAnchor> for RichText
impl From<TextAnchor> for RichText
Source§fn from(x: TextAnchor) -> Self
fn from(x: TextAnchor) -> Self
Converts to this type from the input type.
Source§impl Identifiable for TextAnchor
impl Identifiable for TextAnchor
Source§const CONSTRUCTOR_ID: u32 = 0x35553762
const CONSTRUCTOR_ID: u32 = 0x35553762
The constructor ID as specified in the TL schema.
Source§impl PartialEq for TextAnchor
impl PartialEq for TextAnchor
Source§impl Serializable for TextAnchor
impl Serializable for TextAnchor
Source§impl TryFrom<RichText> for TextAnchor
impl TryFrom<RichText> for TextAnchor
impl StructuralPartialEq for TextAnchor
Auto Trait Implementations§
impl Freeze for TextAnchor
impl RefUnwindSafe for TextAnchor
impl Send for TextAnchor
impl Sync for TextAnchor
impl Unpin for TextAnchor
impl UnsafeUnpin for TextAnchor
impl UnwindSafe for TextAnchor
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