Struct google_api_proto::google::streetview::publish::v1::UpdatePhotoRequest
source · pub struct UpdatePhotoRequest {
pub photo: Option<Photo>,
pub update_mask: Option<FieldMask>,
}
Expand description
Request to update the metadata of a [Photo][google.streetview.publish.v1.Photo]. Updating the pixels of a photo is not supported.
Fields§
§photo: Option<Photo>
Required. [Photo][google.streetview.publish.v1.Photo] object containing the new metadata.
update_mask: Option<FieldMask>
Required. Mask that identifies fields on the photo metadata to update. If not present, the old [Photo][google.streetview.publish.v1.Photo] metadata is entirely replaced with the new [Photo][google.streetview.publish.v1.Photo] metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list.
The following fields are valid:
pose.heading
pose.lat_lng_pair
pose.pitch
pose.roll
pose.level
pose.altitude
connections
places
Note: When [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask] contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask] contains
connections
andUpdatePhotoRequest.photo.connections
is empty, all connections are removed.
Trait Implementations§
source§impl Clone for UpdatePhotoRequest
impl Clone for UpdatePhotoRequest
source§fn clone(&self) -> UpdatePhotoRequest
fn clone(&self) -> UpdatePhotoRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdatePhotoRequest
impl Debug for UpdatePhotoRequest
source§impl Default for UpdatePhotoRequest
impl Default for UpdatePhotoRequest
source§impl Message for UpdatePhotoRequest
impl Message for UpdatePhotoRequest
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 UpdatePhotoRequest
impl PartialEq for UpdatePhotoRequest
source§fn eq(&self, other: &UpdatePhotoRequest) -> bool
fn eq(&self, other: &UpdatePhotoRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdatePhotoRequest
Auto Trait Implementations§
impl Freeze for UpdatePhotoRequest
impl RefUnwindSafe for UpdatePhotoRequest
impl Send for UpdatePhotoRequest
impl Sync for UpdatePhotoRequest
impl Unpin for UpdatePhotoRequest
impl UnwindSafe for UpdatePhotoRequest
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