Struct gapi_grpc::google::cloud::talent::v4beta1::CommuteFilter[][src]

pub struct CommuteFilter {
    pub commute_method: i32,
    pub start_coordinates: Option<LatLng>,
    pub travel_duration: Option<Duration>,
    pub allow_imprecise_addresses: bool,
    pub traffic_option: Option<TrafficOption>,
}

Parameters needed for commute search.

Fields

commute_method: i32

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

start_coordinates: Option<LatLng>

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

travel_duration: Option<Duration>

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

allow_imprecise_addresses: 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.

traffic_option: Option<TrafficOption>

Traffic factor to take into account while searching by commute.

Implementations

impl CommuteFilter[src]

pub fn commute_method(&self) -> CommuteMethod[src]

Returns the enum value of commute_method, or the default if the field is set to an invalid enum value.

pub fn set_commute_method(&mut self, value: CommuteMethod)[src]

Sets commute_method to the provided enum value.

Trait Implementations

impl Clone for CommuteFilter[src]

impl Debug for CommuteFilter[src]

impl Default for CommuteFilter[src]

impl Message for CommuteFilter[src]

impl PartialEq<CommuteFilter> for CommuteFilter[src]

impl StructuralPartialEq for CommuteFilter[src]

Auto Trait Implementations

impl RefUnwindSafe for CommuteFilter

impl Send for CommuteFilter

impl Sync for CommuteFilter

impl Unpin for CommuteFilter

impl UnwindSafe for CommuteFilter

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]