pub struct ParagraphComponent {
pub text_list: Vec<TextComponent>,
}Expand description
ParagraphComponent : A list of rich text content that is typically presented in a text box.
Fields§
§text_list: Vec<TextComponent>Implementations§
Source§impl ParagraphComponent
impl ParagraphComponent
Sourcepub fn new(text_list: Vec<TextComponent>) -> ParagraphComponent
pub fn new(text_list: Vec<TextComponent>) -> ParagraphComponent
A list of rich text content that is typically presented in a text box.
Trait Implementations§
Source§impl Clone for ParagraphComponent
impl Clone for ParagraphComponent
Source§fn clone(&self) -> ParagraphComponent
fn clone(&self) -> ParagraphComponent
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 ParagraphComponent
impl Debug for ParagraphComponent
Source§impl Default for ParagraphComponent
impl Default for ParagraphComponent
Source§fn default() -> ParagraphComponent
fn default() -> ParagraphComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParagraphComponent
impl<'de> Deserialize<'de> for ParagraphComponent
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 ParagraphComponent
impl PartialEq for ParagraphComponent
Source§impl Serialize for ParagraphComponent
impl Serialize for ParagraphComponent
impl StructuralPartialEq for ParagraphComponent
Auto Trait Implementations§
impl Freeze for ParagraphComponent
impl RefUnwindSafe for ParagraphComponent
impl Send for ParagraphComponent
impl Sync for ParagraphComponent
impl Unpin for ParagraphComponent
impl UnsafeUnpin for ParagraphComponent
impl UnwindSafe for ParagraphComponent
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