Struct libgweather::builders::InfoBuilder
source · pub struct InfoBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Info
objects.
Implementations§
source§impl InfoBuilder
impl InfoBuilder
sourcepub fn application_id(self, application_id: impl Into<GString>) -> Self
pub fn application_id(self, application_id: impl Into<GString>) -> Self
A unique identifier, typically in the form of reverse DNS notation, for the application that is querying the weather information.
Weather providers require this information.
sourcepub fn contact_info(self, contact_info: impl Into<GString>) -> Self
pub fn contact_info(self, contact_info: impl Into<GString>) -> Self
An email address or any other contact form URL.
Weather providers require this information.
sourcepub fn enabled_providers(self, enabled_providers: Provider) -> Self
pub fn enabled_providers(self, enabled_providers: Provider) -> Self
The enabled weather providers.
Auto Trait Implementations§
impl Freeze for InfoBuilder
impl RefUnwindSafe for InfoBuilder
impl !Send for InfoBuilder
impl !Sync for InfoBuilder
impl Unpin for InfoBuilder
impl UnwindSafe for InfoBuilder
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