Enum google_api_proto::maps::fleetengine::delivery::v1::delivery_vehicle_attribute::DeliveryVehicleAttributeValue
source · pub enum DeliveryVehicleAttributeValue {
StringValue(String),
BoolValue(bool),
NumberValue(f64),
}
Expand description
The attribute’s value, can be in string, bool, or double type.
Variants§
StringValue(String)
String typed attribute value.
Note: This is identical to the value
field which will eventually be
deprecated. For create or update methods, either field can be used, but
it’s strongly recommended to use string_value
. If both string_value
and value
are set, they must be identical or an error will be thrown.
Both fields are populated in responses.
BoolValue(bool)
Boolean typed attribute value.
NumberValue(f64)
Double typed attribute value.
Implementations§
source§impl DeliveryVehicleAttributeValue
impl DeliveryVehicleAttributeValue
sourcepub fn merge(
field: &mut Option<DeliveryVehicleAttributeValue>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<DeliveryVehicleAttributeValue>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for DeliveryVehicleAttributeValue
impl Clone for DeliveryVehicleAttributeValue
source§fn clone(&self) -> DeliveryVehicleAttributeValue
fn clone(&self) -> DeliveryVehicleAttributeValue
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 PartialEq for DeliveryVehicleAttributeValue
impl PartialEq for DeliveryVehicleAttributeValue
source§fn eq(&self, other: &DeliveryVehicleAttributeValue) -> bool
fn eq(&self, other: &DeliveryVehicleAttributeValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeliveryVehicleAttributeValue
Auto Trait Implementations§
impl Freeze for DeliveryVehicleAttributeValue
impl RefUnwindSafe for DeliveryVehicleAttributeValue
impl Send for DeliveryVehicleAttributeValue
impl Sync for DeliveryVehicleAttributeValue
impl Unpin for DeliveryVehicleAttributeValue
impl UnwindSafe for DeliveryVehicleAttributeValue
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
§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>
Wrap the input message
T
in a tonic::Request