Struct bird_chat::component::TextComponent
source · [−]pub struct TextComponent {
pub text: String,
pub base: BaseComponent,
}Fields
text: Stringbase: BaseComponentImplementations
sourceimpl TextComponent
impl TextComponent
sourceimpl TextComponent
impl TextComponent
Trait Implementations
sourceimpl Clone for TextComponent
impl Clone for TextComponent
sourcefn clone(&self) -> TextComponent
fn clone(&self) -> TextComponent
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 more
sourceimpl Component for TextComponent
impl Component for TextComponent
fn get_base(&self) -> &BaseComponent
sourceimpl Debug for TextComponent
impl Debug for TextComponent
sourceimpl<'de> Deserialize<'de> for TextComponent
impl<'de> Deserialize<'de> for TextComponent
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 From<TextComponent> for ComponentType
impl From<TextComponent> for ComponentType
sourcefn from(component: TextComponent) -> Self
fn from(component: TextComponent) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TextComponent> for TextComponent
impl PartialEq<TextComponent> for TextComponent
sourcefn eq(&self, other: &TextComponent) -> bool
fn eq(&self, other: &TextComponent) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TextComponent) -> bool
fn ne(&self, other: &TextComponent) -> bool
This method tests for !=.
sourceimpl Serialize for TextComponent
impl Serialize for TextComponent
impl StructuralPartialEq for TextComponent
Auto Trait Implementations
impl RefUnwindSafe for TextComponent
impl Send for TextComponent
impl Sync for TextComponent
impl Unpin for TextComponent
impl UnwindSafe for TextComponent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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