#[non_exhaustive]pub struct FancyText {
pub text: Option<String>,
pub color: Option<String>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underlined: Option<bool>,
pub strikethrough: Option<bool>,
pub obfuscated: Option<bool>,
pub extra: Option<Vec<TextComponent>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: Option<String>§color: Option<String>§bold: Option<bool>§italic: Option<bool>§underlined: Option<bool>§strikethrough: Option<bool>§obfuscated: Option<bool>§extra: Option<Vec<TextComponent>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for FancyText
impl<'de> Deserialize<'de> for FancyText
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 FancyText
impl From<TextComponent> for FancyText
Source§fn from(value: TextComponent) -> Self
fn from(value: TextComponent) -> Self
Converts to this type from the input type.
impl Eq for FancyText
impl StructuralPartialEq for FancyText
Auto Trait Implementations§
impl Freeze for FancyText
impl RefUnwindSafe for FancyText
impl Send for FancyText
impl Sync for FancyText
impl Unpin for FancyText
impl UnwindSafe for FancyText
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