pub struct BaseComponent<'a> {
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underlined: Option<bool>,
pub strikethrough: Option<bool>,
pub obfuscated: Option<bool>,
pub font: Option<Identifier<'a>>,
pub color: Option<Color<'a>>,
pub insertion: Option<Cow<'a, str>>,
pub extra: Cow<'a, [Component<'a>]>,
pub click_event: Option<ClickEvent<'a>>,
pub hover_event: Option<HoverEvent<'a>>,
}Fields§
§bold: Option<bool>§italic: Option<bool>§underlined: Option<bool>§strikethrough: Option<bool>§obfuscated: Option<bool>§font: Option<Identifier<'a>>§color: Option<Color<'a>>§insertion: Option<Cow<'a, str>>§extra: Cow<'a, [Component<'a>]>§click_event: Option<ClickEvent<'a>>§hover_event: Option<HoverEvent<'a>>Implementations§
Trait Implementations§
Source§impl<'a> Clone for BaseComponent<'a>
impl<'a> Clone for BaseComponent<'a>
Source§fn clone(&self) -> BaseComponent<'a>
fn clone(&self) -> BaseComponent<'a>
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<'a> Debug for BaseComponent<'a>
impl<'a> Debug for BaseComponent<'a>
Source§impl<'de, 'a> Deserialize<'de> for BaseComponent<'a>
impl<'de, 'a> Deserialize<'de> for BaseComponent<'a>
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<'a> From<BaseComponent<'a>> for Component<'a>
impl<'a> From<BaseComponent<'a>> for Component<'a>
Source§fn from(component: BaseComponent<'a>) -> Self
fn from(component: BaseComponent<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for BaseComponent<'a>
impl<'a> PartialEq for BaseComponent<'a>
Source§impl<'a> Serialize for BaseComponent<'a>
impl<'a> Serialize for BaseComponent<'a>
impl<'a> StructuralPartialEq for BaseComponent<'a>
Auto Trait Implementations§
impl<'a> Freeze for BaseComponent<'a>
impl<'a> RefUnwindSafe for BaseComponent<'a>
impl<'a> Send for BaseComponent<'a>
impl<'a> Sync for BaseComponent<'a>
impl<'a> Unpin for BaseComponent<'a>
impl<'a> UnwindSafe for BaseComponent<'a>
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more