#[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<PolylineQuality>
pub fn from_str_name(value: &str) -> Option<PolylineQuality>
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 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§impl PartialOrd for PolylineQuality
impl PartialOrd for PolylineQuality
Source§impl TryFrom<i32> for PolylineQuality
impl TryFrom<i32> for PolylineQuality
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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