pub struct BossBarAddSpec {
pub title: Chat,
pub health: f32,
pub color: BossBarColor,
pub division: BossBarDivision,
pub flags: BossBarFlags,
}
Fields§
§title: Chat
§health: f32
§color: BossBarColor
§division: BossBarDivision
§flags: BossBarFlags
Trait Implementations§
Source§impl Clone for BossBarAddSpec
impl Clone for BossBarAddSpec
Source§fn clone(&self) -> BossBarAddSpec
fn clone(&self) -> BossBarAddSpec
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 Debug for BossBarAddSpec
impl Debug for BossBarAddSpec
Source§impl Deserialize for BossBarAddSpec
impl Deserialize for BossBarAddSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(Chat, f32, BossBarColor, BossBarDivision, BossBarFlags)> for BossBarAddSpec
impl From<(Chat, f32, BossBarColor, BossBarDivision, BossBarFlags)> for BossBarAddSpec
Source§fn from(other: (Chat, f32, BossBarColor, BossBarDivision, BossBarFlags)) -> Self
fn from(other: (Chat, f32, BossBarColor, BossBarDivision, BossBarFlags)) -> Self
Converts to this type from the input type.
Source§impl From<BossBarAddSpec> for (Chat, f32, BossBarColor, BossBarDivision, BossBarFlags)
impl From<BossBarAddSpec> for (Chat, f32, BossBarColor, BossBarDivision, BossBarFlags)
Source§fn from(other: BossBarAddSpec) -> Self
fn from(other: BossBarAddSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BossBarAddSpec
impl PartialEq for BossBarAddSpec
Source§impl Serialize for BossBarAddSpec
impl Serialize for BossBarAddSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for BossBarAddSpec
Auto Trait Implementations§
impl Freeze for BossBarAddSpec
impl RefUnwindSafe for BossBarAddSpec
impl Send for BossBarAddSpec
impl Sync for BossBarAddSpec
impl Unpin for BossBarAddSpec
impl UnwindSafe for BossBarAddSpec
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