pub struct BaseComponent {
pub bold: bool,
pub italic: bool,
pub underlined: bool,
pub strikethrough: bool,
pub obfuscated: bool,
pub color: Option<ColorCode>,
pub insertion: Option<String>,
pub click_event: Option<ChatClickEvent>,
pub hover_event: Option<ChatHoverEvent>,
pub extra: Vec<BoxedChat>,
}
Fields§
§bold: bool
§italic: bool
§underlined: bool
§strikethrough: bool
§obfuscated: bool
§color: Option<ColorCode>
§insertion: Option<String>
§click_event: Option<ChatClickEvent>
§hover_event: Option<ChatHoverEvent>
§extra: Vec<BoxedChat>
Trait Implementations§
Source§impl Clone for BaseComponent
impl Clone for BaseComponent
Source§fn clone(&self) -> BaseComponent
fn clone(&self) -> BaseComponent
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 BaseComponent
impl Debug for BaseComponent
Source§impl Default for BaseComponent
impl Default for BaseComponent
Source§impl PartialEq for BaseComponent
impl PartialEq for BaseComponent
Source§impl Serialize for BaseComponent
impl Serialize for BaseComponent
impl StructuralPartialEq for BaseComponent
Auto Trait Implementations§
impl Freeze for BaseComponent
impl RefUnwindSafe for BaseComponent
impl Send for BaseComponent
impl Sync for BaseComponent
impl Unpin for BaseComponent
impl UnwindSafe for BaseComponent
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