pub struct FireworkExplosion {
pub shape: FireworkShape,
pub colors: Vec<String>,
pub fade_colors: Vec<String>,
pub trail: bool,
pub twinkle: bool,
}Expand description
One burst of a crate::Verb::Firework — one firework star.
Fields§
§shape: FireworkShapeWhich of the game’s five shapes this burst takes.
colors: Vec<String>The burst’s colours, one or more #rrggbb literals — the spelling
crate::PotionContents::color uses, emitted as the packed integers the
component reads. At least one: a star with no colour is not a star.
fade_colors: Vec<String>Colours the burst fades to, same spelling. Empty = no fade.
trail: boolWhether the burst trails (a diamond star). Default false.
twinkle: boolWhether the burst twinkles/crackles (a glowstone-dust star). Default false.
Trait Implementations§
Source§impl Clone for FireworkExplosion
impl Clone for FireworkExplosion
Source§impl Debug for FireworkExplosion
impl Debug for FireworkExplosion
Source§impl<'de> Deserialize<'de> for FireworkExplosion
impl<'de> Deserialize<'de> for FireworkExplosion
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
impl Eq for FireworkExplosion
Source§impl JsonSchema for FireworkExplosion
impl JsonSchema for FireworkExplosion
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FireworkExplosion
impl PartialEq for FireworkExplosion
Source§impl Serialize for FireworkExplosion
impl Serialize for FireworkExplosion
impl StructuralPartialEq for FireworkExplosion
Auto Trait Implementations§
impl Freeze for FireworkExplosion
impl RefUnwindSafe for FireworkExplosion
impl Send for FireworkExplosion
impl Sync for FireworkExplosion
impl Unpin for FireworkExplosion
impl UnsafeUnpin for FireworkExplosion
impl UnwindSafe for FireworkExplosion
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