Struct valence_text::ScoreboardValueContent
source · pub struct ScoreboardValueContent {
pub name: Cow<'static, str>,
pub objective: Cow<'static, str>,
pub value: Option<Cow<'static, str>>,
}
Expand description
Scoreboard value.
Fields§
§name: Cow<'static, str>
The name of the score holder whose score should be displayed. This
can be a selector
or an explicit name.
objective: Cow<'static, str>
The internal name of the objective to display the player’s score in.
value: Option<Cow<'static, str>>
If present, this value is displayed regardless of what the score would have been.
Trait Implementations§
source§impl Clone for ScoreboardValueContent
impl Clone for ScoreboardValueContent
source§fn clone(&self) -> ScoreboardValueContent
fn clone(&self) -> ScoreboardValueContent
Returns a copy 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 Debug for ScoreboardValueContent
impl Debug for ScoreboardValueContent
source§impl<'de> Deserialize<'de> for ScoreboardValueContent
impl<'de> Deserialize<'de> for ScoreboardValueContent
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 PartialEq for ScoreboardValueContent
impl PartialEq for ScoreboardValueContent
source§impl Serialize for ScoreboardValueContent
impl Serialize for ScoreboardValueContent
impl StructuralPartialEq for ScoreboardValueContent
Auto Trait Implementations§
impl Freeze for ScoreboardValueContent
impl RefUnwindSafe for ScoreboardValueContent
impl Send for ScoreboardValueContent
impl Sync for ScoreboardValueContent
impl Unpin for ScoreboardValueContent
impl UnwindSafe for ScoreboardValueContent
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
)