pub struct EncounterData {
pub location_id: i32,
pub min_time_hour: u8,
pub max_time_hour: u8,
pub rarity_level: u8,
pub needs_rain: bool,
}Fields§
§location_id: i32§min_time_hour: u8Minimum and maximum local time (24h-format) this fish can be encountered at 16-16 means a fish will only appear from 4:00pm to 4:59pm 16-17 means a fish will only appear from 4:00pm to 5:59pm
max_time_hour: u8§rarity_level: u8The higher, the rarer
needs_rain: boolImplementations§
Trait Implementations§
Source§impl Debug for EncounterData
impl Debug for EncounterData
Source§impl Default for EncounterData
impl Default for EncounterData
Source§fn default() -> EncounterData
fn default() -> EncounterData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EncounterData
impl<'de> Deserialize<'de> for EncounterData
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 EncounterData
impl PartialEq for EncounterData
Source§impl Serialize for EncounterData
impl Serialize for EncounterData
impl StructuralPartialEq for EncounterData
Auto Trait Implementations§
impl Freeze for EncounterData
impl RefUnwindSafe for EncounterData
impl Send for EncounterData
impl Sync for EncounterData
impl Unpin for EncounterData
impl UnwindSafe for EncounterData
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> 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