Struct valence_text::TextInner
source · pub struct TextInner {
pub content: TextContent,
pub color: Option<Color>,
pub font: Option<Font>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underlined: Option<bool>,
pub strikethrough: Option<bool>,
pub obfuscated: Option<bool>,
pub insertion: Option<Cow<'static, str>>,
pub click_event: Option<ClickEvent>,
pub hover_event: Option<HoverEvent>,
pub extra: Vec<Text>,
}
Expand description
Text data and formatting.
Fields§
§content: TextContent
§color: Option<Color>
§font: Option<Font>
§bold: Option<bool>
§italic: Option<bool>
§underlined: Option<bool>
§strikethrough: Option<bool>
§obfuscated: Option<bool>
§insertion: Option<Cow<'static, str>>
§click_event: Option<ClickEvent>
§hover_event: Option<HoverEvent>
§extra: Vec<Text>
Trait Implementations§
source§impl<'de> Deserialize<'de> for TextInner
impl<'de> Deserialize<'de> for TextInner
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
impl StructuralPartialEq for TextInner
Auto Trait Implementations§
impl Freeze for TextInner
impl RefUnwindSafe for TextInner
impl Send for TextInner
impl Sync for TextInner
impl Unpin for TextInner
impl UnwindSafe for TextInner
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)