#[repr(i32)]pub enum PolylineEncoding {
Unspecified = 0,
EncodedPolyline = 1,
GeoJsonLinestring = 2,
}
Expand description
Specifies the preferred type of polyline to be returned.
Variants§
Unspecified = 0
No polyline type preference specified. Defaults to ENCODED_POLYLINE
.
EncodedPolyline = 1
Specifies a polyline encoded using the polyline encoding algorithm.
GeoJsonLinestring = 2
Specifies a polyline using the GeoJSON LineString format
Implementations§
Source§impl PolylineEncoding
impl PolylineEncoding
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 PolylineEncoding
impl Clone for PolylineEncoding
Source§fn clone(&self) -> PolylineEncoding
fn clone(&self) -> PolylineEncoding
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PolylineEncoding
impl Debug for PolylineEncoding
Source§impl Default for PolylineEncoding
impl Default for PolylineEncoding
Source§fn default() -> PolylineEncoding
fn default() -> PolylineEncoding
Returns the “default value” for a type. Read more
Source§impl From<PolylineEncoding> for i32
impl From<PolylineEncoding> for i32
Source§fn from(value: PolylineEncoding) -> i32
fn from(value: PolylineEncoding) -> i32
Converts to this type from the input type.
Source§impl Hash for PolylineEncoding
impl Hash for PolylineEncoding
Source§impl Ord for PolylineEncoding
impl Ord for PolylineEncoding
Source§fn cmp(&self, other: &PolylineEncoding) -> Ordering
fn cmp(&self, other: &PolylineEncoding) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PolylineEncoding
impl PartialEq for PolylineEncoding
Source§impl PartialOrd for PolylineEncoding
impl PartialOrd for PolylineEncoding
Source§impl TryFrom<i32> for PolylineEncoding
impl TryFrom<i32> for PolylineEncoding
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<PolylineEncoding, UnknownEnumValue>
fn try_from(value: i32) -> Result<PolylineEncoding, UnknownEnumValue>
Performs the conversion.
impl Copy for PolylineEncoding
impl Eq for PolylineEncoding
impl StructuralPartialEq for PolylineEncoding
Auto Trait Implementations§
impl Freeze for PolylineEncoding
impl RefUnwindSafe for PolylineEncoding
impl Send for PolylineEncoding
impl Sync for PolylineEncoding
impl Unpin for PolylineEncoding
impl UnwindSafe for PolylineEncoding
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T
in a tonic::Request