Struct google_api_proto::google::streetview::publish::v1::Photo
source · pub struct Photo {Show 13 fields
pub photo_id: Option<PhotoId>,
pub upload_reference: Option<UploadRef>,
pub download_url: String,
pub thumbnail_url: String,
pub share_link: String,
pub pose: Option<Pose>,
pub connections: Vec<Connection>,
pub capture_time: Option<Timestamp>,
pub upload_time: Option<Timestamp>,
pub places: Vec<Place>,
pub view_count: i64,
pub transfer_status: i32,
pub maps_publish_status: i32,
}
Expand description
Photo is used to store 360 photos along with photo metadata.
Fields§
§photo_id: Option<PhotoId>
Required. Output only. Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google.
upload_reference: Option<UploadRef>
Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
download_url: String
Output only. The download URL for the photo bytes. This field is set only when [GetPhotoRequest.view][google.streetview.publish.v1.GetPhotoRequest.view] is set to [PhotoView.INCLUDE_DOWNLOAD_URL][google.streetview.publish.v1.PhotoView.INCLUDE_DOWNLOAD_URL].
thumbnail_url: String
Output only. The thumbnail URL for showing a preview of the given photo.
Output only. The share link for the photo.
pose: Option<Pose>
Optional. Pose of the photo.
connections: Vec<Connection>
Optional. Connections to other photos. A connection represents the link from this photo to another photo.
capture_time: Option<Timestamp>
Optional. Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.
upload_time: Option<Timestamp>
Output only. Time when the image was uploaded.
places: Vec<Place>
Optional. Places where this photo belongs.
view_count: i64
Output only. View count of the photo.
transfer_status: i32
Output only. Status of rights transfer on this photo.
maps_publish_status: i32
Output only. Status in Google Maps, whether this photo was published or rejected.
Implementations§
source§impl Photo
impl Photo
sourcepub fn transfer_status(&self) -> TransferStatus
pub fn transfer_status(&self) -> TransferStatus
Returns the enum value of transfer_status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_transfer_status(&mut self, value: TransferStatus)
pub fn set_transfer_status(&mut self, value: TransferStatus)
Sets transfer_status
to the provided enum value.
sourcepub fn maps_publish_status(&self) -> MapsPublishStatus
pub fn maps_publish_status(&self) -> MapsPublishStatus
Returns the enum value of maps_publish_status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_maps_publish_status(&mut self, value: MapsPublishStatus)
pub fn set_maps_publish_status(&mut self, value: MapsPublishStatus)
Sets maps_publish_status
to the provided enum value.
Trait Implementations§
source§impl Message for Photo
impl Message for Photo
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 Photo
impl PartialEq for Photo
impl StructuralPartialEq for Photo
Auto Trait Implementations§
impl Freeze for Photo
impl RefUnwindSafe for Photo
impl Send for Photo
impl Sync for Photo
impl Unpin for Photo
impl UnwindSafe for Photo
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