Enum TextNodeContent
pub enum TextNodeContent {
Literal(String),
Translatable {
key: String,
fallback: Option<String>,
},
Keybind(String),
Selector {
pattern: String,
},
Score {
name: String,
objective: String,
},
Nbt {
path: String,
interpret: bool,
source: TextNbtSource,
},
Player {
profile: TextProfile,
hat: bool,
},
Atlas {
atlas: String,
sprite: String,
},
}Expand description
Shallow content. Recursive values appear only in related rows.
Variants§
Literal(String)
Literal characters.
Translatable
Translation key and optional literal fallback template.
Keybind(String)
Key binding identifier.
Selector
Selector expression.
Score
Score holder and objective.
Nbt
NBT lookup.
Fields
§
source: TextNbtSourceNBT lookup source.
Player
Player head.
Atlas
Atlas sprite.
Trait Implementations§
§impl Clone for TextNodeContent
impl Clone for TextNodeContent
§fn clone(&self) -> TextNodeContent
fn clone(&self) -> TextNodeContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TextNodeContent
impl Debug for TextNodeContent
impl Eq for TextNodeContent
§impl PartialEq for TextNodeContent
impl PartialEq for TextNodeContent
impl StructuralPartialEq for TextNodeContent
Auto Trait Implementations§
impl Freeze for TextNodeContent
impl RefUnwindSafe for TextNodeContent
impl Send for TextNodeContent
impl Sync for TextNodeContent
impl Unpin for TextNodeContent
impl UnsafeUnpin for TextNodeContent
impl UnwindSafe for TextNodeContent
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