pub struct TextComponent {
pub text: String,
pub base: BaseComponent,
}Fields§
§text: String§base: BaseComponentImplementations§
Source§impl TextComponent
impl TextComponent
Trait Implementations§
Source§impl Clone for TextComponent
impl Clone for TextComponent
Source§fn clone(&self) -> TextComponent
fn clone(&self) -> TextComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Component for TextComponent
impl Component for TextComponent
fn get_base(&self) -> &BaseComponent
Source§impl Debug for TextComponent
impl Debug for TextComponent
Source§impl<'de> Deserialize<'de> for TextComponent
impl<'de> Deserialize<'de> for TextComponent
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 From<TextComponent> for ComponentType
impl From<TextComponent> for ComponentType
Source§fn from(component: TextComponent) -> Self
fn from(component: TextComponent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextComponent
impl PartialEq for TextComponent
Source§fn eq(&self, other: &TextComponent) -> bool
fn eq(&self, other: &TextComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextComponent
impl Serialize for TextComponent
impl StructuralPartialEq for TextComponent
Auto Trait Implementations§
impl Freeze for TextComponent
impl RefUnwindSafe for TextComponent
impl Send for TextComponent
impl Sync for TextComponent
impl Unpin for TextComponent
impl UnsafeUnpin for TextComponent
impl UnwindSafe for TextComponent
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