pub struct Climate {
pub temperature: f64,
pub downfall: f64,
}Expand description
A biome’s climate pair (spec-0080 §3.1.4).
Fields§
§temperature: f64temperature: vanilla snows below 0.15.
downfall: f64downfall.
Trait Implementations§
impl Copy for Climate
Source§impl<'de> Deserialize<'de> for Climate
impl<'de> Deserialize<'de> for Climate
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 JsonSchema for Climate
impl JsonSchema for Climate
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 moreimpl StructuralPartialEq for Climate
Auto Trait Implementations§
impl Freeze for Climate
impl RefUnwindSafe for Climate
impl Send for Climate
impl Sync for Climate
impl Unpin for Climate
impl UnsafeUnpin for Climate
impl UnwindSafe for Climate
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