pub struct AmbientWeatherAPICredentials {
pub api_key: String,
pub app_key: String,
pub device_id: usize,
pub use_new_api_endpoint: bool,
}
Expand description
The struct for holding the API and App keys, the device idea, and whether or not to use the new API endpoint or not.
Fields§
§api_key: String
The API key received from Ambient Weather.
app_key: String
The Application key received from Ambient Weather.
device_id: usize
The device id, which for a user with a single station will be 0.
use_new_api_endpoint: bool
A bool to determine if the new API endpoint should be used. Due to problematic behavior, I recommend leaving this set to false.
Trait Implementations§
source§impl Clone for AmbientWeatherAPICredentials
impl Clone for AmbientWeatherAPICredentials
source§fn clone(&self) -> AmbientWeatherAPICredentials
fn clone(&self) -> AmbientWeatherAPICredentials
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for AmbientWeatherAPICredentials
impl Send for AmbientWeatherAPICredentials
impl Sync for AmbientWeatherAPICredentials
impl Unpin for AmbientWeatherAPICredentials
impl UnwindSafe for AmbientWeatherAPICredentials
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