Struct google_api_proto::google::cloud::talent::v4beta1::CommuteFilter
source · 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>,
}
Expand description
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§
source§impl CommuteFilter
impl CommuteFilter
sourcepub fn commute_method(&self) -> CommuteMethod
pub fn commute_method(&self) -> CommuteMethod
Returns the enum value of commute_method
, or the default if the field is set to an invalid enum value.
sourcepub fn set_commute_method(&mut self, value: CommuteMethod)
pub fn set_commute_method(&mut self, value: CommuteMethod)
Sets commute_method
to the provided enum value.
Trait Implementations§
source§impl Clone for CommuteFilter
impl Clone for CommuteFilter
source§fn clone(&self) -> CommuteFilter
fn clone(&self) -> CommuteFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommuteFilter
impl Debug for CommuteFilter
source§impl Default for CommuteFilter
impl Default for CommuteFilter
source§impl Message for CommuteFilter
impl Message for CommuteFilter
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for CommuteFilter
impl PartialEq for CommuteFilter
source§fn eq(&self, other: &CommuteFilter) -> bool
fn eq(&self, other: &CommuteFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommuteFilter
Auto Trait Implementations§
impl Freeze for CommuteFilter
impl RefUnwindSafe for CommuteFilter
impl Send for CommuteFilter
impl Sync for CommuteFilter
impl Unpin for CommuteFilter
impl UnwindSafe for CommuteFilter
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request