Enum elytra_ping::parse::fancy_string::FancyTextComponent
source · pub enum FancyTextComponent {
ColorText {
color: String,
text: String,
},
PlainText {
text: String,
},
NestedText {
bold: bool,
italic: bool,
underlined: bool,
strikethrough: bool,
obfuscated: bool,
extra: FancyText,
},
}Variants§
Implementations§
source§impl FancyTextComponent
impl FancyTextComponent
pub fn to_markdown(&self) -> String
Trait Implementations§
source§impl Clone for FancyTextComponent
impl Clone for FancyTextComponent
source§fn clone(&self) -> FancyTextComponent
fn clone(&self) -> FancyTextComponent
Returns a copy 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 FancyTextComponent
impl Debug for FancyTextComponent
source§impl<'de> Deserialize<'de> for FancyTextComponent
impl<'de> Deserialize<'de> for FancyTextComponent
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 Hash for FancyTextComponent
impl Hash for FancyTextComponent
source§impl PartialEq for FancyTextComponent
impl PartialEq for FancyTextComponent
source§fn eq(&self, other: &FancyTextComponent) -> bool
fn eq(&self, other: &FancyTextComponent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for FancyTextComponent
impl Serialize for FancyTextComponent
impl Eq for FancyTextComponent
impl StructuralEq for FancyTextComponent
impl StructuralPartialEq for FancyTextComponent
Auto Trait Implementations§
impl RefUnwindSafe for FancyTextComponent
impl Send for FancyTextComponent
impl Sync for FancyTextComponent
impl Unpin for FancyTextComponent
impl UnwindSafe for FancyTextComponent
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