Struct google_jobs4::api::CommuteFilter[][src]

pub struct CommuteFilter {
    pub allow_imprecise_addresses: Option<bool>,
    pub commute_method: Option<String>,
    pub departure_time: Option<TimeOfDay>,
    pub road_traffic: Option<String>,
    pub start_coordinates: Option<LatLng>,
    pub travel_duration: Option<String>,
}
Expand description

Parameters needed for commute search.

This type is not used in any activity, and only used as part of another schema.

Fields

allow_imprecise_addresses: Option<bool>

If true, jobs without street level addresses may also be returned. For city level addresses, the city center is used. For state and coarser level addresses, text matching is used. If this field is set to false or isn’t specified, only jobs that include street level addresses will be returned by commute search.

commute_method: Option<String>

Required. The method of transportation to calculate the commute time for.

departure_time: Option<TimeOfDay>

The departure time used to calculate traffic impact, represented as google.type.TimeOfDay in local time zone. Currently traffic model is restricted to hour level resolution.

road_traffic: Option<String>

Specifies the traffic density to use when calculating commute time.

start_coordinates: Option<LatLng>

Required. The latitude and longitude of the location to calculate the commute time from.

travel_duration: Option<String>

Required. The maximum travel time in seconds. The maximum allowed value is 3600s (one hour). Format is 123s.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.