Enum google_api_proto::google::maps::routing::v2::PolylineQuality
source · #[repr(i32)]pub enum PolylineQuality {
Unspecified = 0,
HighQuality = 1,
Overview = 2,
}
Expand description
A set of values that specify the quality of the polyline.
Variants§
Unspecified = 0
No polyline quality preference specified. Defaults to OVERVIEW
.
HighQuality = 1
Specifies a high-quality polyline - which is composed using more points
than OVERVIEW
, at the cost of increased response size. Use this value
when you need more precision.
Overview = 2
Specifies an overview polyline - which is composed using a small number of
points. Use this value when displaying an overview of the route. Using this
option has a lower request latency compared to using the
HIGH_QUALITY
option.
Implementations§
source§impl PolylineQuality
impl PolylineQuality
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PolylineQuality
impl Clone for PolylineQuality
source§fn clone(&self) -> PolylineQuality
fn clone(&self) -> PolylineQuality
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PolylineQuality
impl Debug for PolylineQuality
source§impl Default for PolylineQuality
impl Default for PolylineQuality
source§fn default() -> PolylineQuality
fn default() -> PolylineQuality
source§impl From<PolylineQuality> for i32
impl From<PolylineQuality> for i32
source§fn from(value: PolylineQuality) -> i32
fn from(value: PolylineQuality) -> i32
source§impl Hash for PolylineQuality
impl Hash for PolylineQuality
source§impl Ord for PolylineQuality
impl Ord for PolylineQuality
source§fn cmp(&self, other: &PolylineQuality) -> Ordering
fn cmp(&self, other: &PolylineQuality) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PolylineQuality
impl PartialEq for PolylineQuality
source§fn eq(&self, other: &PolylineQuality) -> bool
fn eq(&self, other: &PolylineQuality) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PolylineQuality
impl PartialOrd for PolylineQuality
source§fn partial_cmp(&self, other: &PolylineQuality) -> Option<Ordering>
fn partial_cmp(&self, other: &PolylineQuality) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PolylineQuality
impl TryFrom<i32> for PolylineQuality
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PolylineQuality, UnknownEnumValue>
fn try_from(value: i32) -> Result<PolylineQuality, UnknownEnumValue>
impl Copy for PolylineQuality
impl Eq for PolylineQuality
impl StructuralPartialEq for PolylineQuality
Auto Trait Implementations§
impl Freeze for PolylineQuality
impl RefUnwindSafe for PolylineQuality
impl Send for PolylineQuality
impl Sync for PolylineQuality
impl Unpin for PolylineQuality
impl UnwindSafe for PolylineQuality
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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