struct AttributesThe attributes for the WeatherTrait.
-
The current weather conditions.
Declaration
Swift
let currentConditions: Google.WeatherTrait.CurrentConditions? -
12 hours of hourly forecasted weather conditions. Index 0 is the forecast for the current hour. For example, if it’s currently 16:32, index 0 is the forecast for 16:00-17:00.
Declaration
Swift
let hourlyForecastConditionsArray: [Google.WeatherTrait.HourlyForecastConditions] -
10 days of daily forecasted weather conditions. Index 0 is the forecast for the current day. For example, if it’s currently Tuesday at 16:32, index 0 is the forecast for Tuesday.
Declaration
Swift
let dailyForecastConditionsArray: [Google.WeatherTrait.DailyForecastConditions] -
True if the user’s home does not have address information in the system.
Declaration
Swift
let missingStructureLocation: Bool? -
The source of the weather data. This is used for displaying attribution in the UI.
Declaration
Swift
let weatherProvider: Google.WeatherTrait.WeatherProvider? -
Epoch time in seconds of last update for any of the weather data.
Declaration
Swift
let lastUpdateTimeEpochSeconds: Int64? -
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
aandb,a == bimplies thata != bisfalse.Declaration
Swift
static func == (lhs: Google.WeatherTrait.Attributes, rhs: Google.WeatherTrait.Attributes) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
Hashes the essential components of this value by feeding them into the given hasher.
Implement this method to conform to the
Hashableprotocol. The components used for hashing must be the same as the components compared in your type’s==operator implementation. Callhasher.combine(_:)with each of these components.Important
In your implementation of
hash(into:), don’t callfinalize()on thehasherinstance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.Declaration
Swift
func hash(into hasher: inout Hasher)