pub struct StyledTextComponent {
pub translate: String,
pub color: Option<String>,
}Expand description
Represents a translatable text component that can also include styling.
Fields§
§translate: String§color: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for StyledTextComponent
impl RefUnwindSafe for StyledTextComponent
impl Send for StyledTextComponent
impl Sync for StyledTextComponent
impl Unpin for StyledTextComponent
impl UnsafeUnpin for StyledTextComponent
impl UnwindSafe for StyledTextComponent
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