pub struct WeatherService { /* private fields */ }Implementations§
Source§impl WeatherService
impl WeatherService
pub fn get_instance() -> Arc<WeatherService>
pub fn get_weather( &self, location_id: i32, time: DateTime<Tz>, ) -> Option<Weather>
pub fn get_current_weather(&self, location_id: i32) -> Option<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