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