pub struct RichTextIcon {
pub document: Document,
pub width: i32,
pub height: i32,
}
Expand description
A small image inside the text
Fields§
§document: Document
The image represented as a document. The image can be in GIF, JPEG or PNG format
width: i32
Width of a bounding box in which the image must be shown; 0 if unknown
height: i32
Height of a bounding box in which the image must be shown; 0 if unknown
Trait Implementations§
Source§impl Clone for RichTextIcon
impl Clone for RichTextIcon
Source§fn clone(&self) -> RichTextIcon
fn clone(&self) -> RichTextIcon
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 RichTextIcon
impl Debug for RichTextIcon
Source§impl<'de> Deserialize<'de> for RichTextIcon
impl<'de> Deserialize<'de> for RichTextIcon
Source§fn 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
Source§impl PartialEq for RichTextIcon
impl PartialEq for RichTextIcon
Source§impl Serialize for RichTextIcon
impl Serialize for RichTextIcon
impl StructuralPartialEq for RichTextIcon
Auto Trait Implementations§
impl Freeze for RichTextIcon
impl RefUnwindSafe for RichTextIcon
impl Send for RichTextIcon
impl Sync for RichTextIcon
impl Unpin for RichTextIcon
impl UnwindSafe for RichTextIcon
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