pub struct WeatherService { /* private fields */ }Implementations§
Source§impl WeatherService
impl WeatherService
pub fn new(config: Arc<dyn ConfigInterface>) -> Self
Trait Implementations§
Source§impl WeatherServiceInterface for WeatherService
impl WeatherServiceInterface for WeatherService
fn get_weather( &self, location_data: Arc<LocationData>, time: DateTime<Tz>, ) -> GameResult<Weather>
fn get_current_weather( &self, location_data: Arc<LocationData>, ) -> GameResult<Weather>
Auto Trait Implementations§
impl Freeze for WeatherService
impl RefUnwindSafe for WeatherService
impl Send for WeatherService
impl Sync for WeatherService
impl Unpin for WeatherService
impl UnwindSafe for WeatherService
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