Struct google_mybusiness4::api::MediaItemDataRef
source · pub struct MediaItemDataRef {
pub resource_name: Option<String>,
}
Expand description
Reference to the photo binary data of a MediaItem
uploaded through the My
Business API.
Create a data ref using StartUploadMediaItemData, and use this ref when uploading bytes to [UpdateMedia] and subsequently calling CreateMediaItem.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations media start upload accounts (response)
Fields§
§resource_name: Option<String>
The unique ID for this media item’s binary data. Used to upload the photo data with [UpdateMedia] and when creating a new media item from those bytes with CreateMediaItem.
Example of uploading bytes:
curl -X POST -T{path_to_file} "http://mybusiness.googleapis.com/upload/v1/media/{resource_name}?upload_type=media"
For CreateMediaItem
calls, set this as the MediaItem
data_ref
.
Trait Implementations§
source§impl Clone for MediaItemDataRef
impl Clone for MediaItemDataRef
source§fn clone(&self) -> MediaItemDataRef
fn clone(&self) -> MediaItemDataRef
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more