Struct google_api_proto::maps::fleetengine::v1::UpdateVehicleRequest
source · pub struct UpdateVehicleRequest {
pub header: Option<RequestHeader>,
pub name: String,
pub vehicle: Option<Vehicle>,
pub update_mask: Option<FieldMask>,
}Expand description
`UpdateVehicle request message.
Fields§
§header: Option<RequestHeader>The standard Fleet Engine request header.
name: StringRequired. Must be in the format
providers/{provider}/vehicles/{vehicle}.
The {provider} must be the Project ID (for example, sample-cloud-project)
of the Google Cloud Project of which the service account making
this call is a member.
vehicle: Option<Vehicle>Required. The Vehicle entity values to apply. When updating a Vehicle,
the following fields may not be updated as they are managed by the
server.
available_capacitycurrent_route_segment_versioncurrent_tripsnamewaypoints_version
If the attributes field is updated, all the vehicle’s attributes are
replaced with the attributes provided in the request. If you want to update
only some attributes, see the UpdateVehicleAttributes method.
Likewise, the waypoints field can be updated, but must contain all the
waypoints currently on the vehicle, and no other waypoints.
update_mask: Option<FieldMask>Required. A field mask indicating which fields of the Vehicle to update.
At least one field name must be provided.
Trait Implementations§
source§impl Clone for UpdateVehicleRequest
impl Clone for UpdateVehicleRequest
source§fn clone(&self) -> UpdateVehicleRequest
fn clone(&self) -> UpdateVehicleRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateVehicleRequest
impl Debug for UpdateVehicleRequest
source§impl Default for UpdateVehicleRequest
impl Default for UpdateVehicleRequest
source§impl Message for UpdateVehicleRequest
impl Message for UpdateVehicleRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.source§impl PartialEq for UpdateVehicleRequest
impl PartialEq for UpdateVehicleRequest
source§fn eq(&self, other: &UpdateVehicleRequest) -> bool
fn eq(&self, other: &UpdateVehicleRequest) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateVehicleRequest
Auto Trait Implementations§
impl Freeze for UpdateVehicleRequest
impl RefUnwindSafe for UpdateVehicleRequest
impl Send for UpdateVehicleRequest
impl Sync for UpdateVehicleRequest
impl Unpin for UpdateVehicleRequest
impl UnwindSafe for UpdateVehicleRequest
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