pub struct SeasonData {
pub min_temp_c: f32,
pub max_temp_c: f32,
pub rain_intensity_raining_threshold: f32,
pub moisture_raining_threshold: f32,
pub cloudiness_raining_threshold: f32,
}Fields§
§min_temp_c: f32§max_temp_c: f32§rain_intensity_raining_threshold: f32How big the rain intensity has to be for rain to start
moisture_raining_threshold: f32How big the humidity has to be for rain to start
cloudiness_raining_threshold: f32How big the cloudiness has to be for rain to start
Implementations§
Source§impl SeasonData
impl SeasonData
pub fn interpolate(&self, next_data: &SeasonData, progress: f32) -> Self
Trait Implementations§
Source§impl Clone for SeasonData
impl Clone for SeasonData
Source§fn clone(&self) -> SeasonData
fn clone(&self) -> SeasonData
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 SeasonData
impl Debug for SeasonData
Source§impl Default for SeasonData
impl Default for SeasonData
Source§fn default() -> SeasonData
fn default() -> SeasonData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SeasonData
impl<'de> Deserialize<'de> for SeasonData
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 SeasonData
impl PartialEq for SeasonData
Source§impl Serialize for SeasonData
impl Serialize for SeasonData
impl StructuralPartialEq for SeasonData
Auto Trait Implementations§
impl Freeze for SeasonData
impl RefUnwindSafe for SeasonData
impl Send for SeasonData
impl Sync for SeasonData
impl Unpin for SeasonData
impl UnwindSafe for SeasonData
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§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more