pub struct PlayClient { /* private fields */ }Implementations§
Source§impl PlayClient
impl PlayClient
pub fn new(account: ServiceAccount) -> Self
Sourcepub fn account_email(&self) -> &str
pub fn account_email(&self) -> &str
The service account’s email, for diagnostics.
pub async fn insert_edit(&self, package: &str) -> Result<Edit>
pub async fn get_edit(&self, package: &str, edit_id: &str) -> Result<Edit>
pub async fn validate_edit(&self, package: &str, edit_id: &str) -> Result<()>
pub async fn commit_edit(&self, package: &str, edit_id: &str) -> Result<()>
pub async fn delete_edit(&self, package: &str, edit_id: &str) -> Result<()>
pub async fn list_listings( &self, package: &str, edit_id: &str, ) -> Result<Vec<Listing>>
pub async fn get_listing( &self, package: &str, edit_id: &str, locale: &str, ) -> Result<Listing>
Sourcepub async fn patch_listing(
&self,
package: &str,
edit_id: &str,
locale: &str,
fields: &ListingFields,
) -> Result<Listing>
pub async fn patch_listing( &self, package: &str, edit_id: &str, locale: &str, fields: &ListingFields, ) -> Result<Listing>
listings.patch; a locale the app does not have yet is created with
listings.update (PUT), which Play treats as an upsert.
pub async fn list_images( &self, package: &str, edit_id: &str, locale: &str, image_type: ImageType, ) -> Result<Vec<Image>>
pub async fn upload_image( &self, package: &str, edit_id: &str, locale: &str, image_type: ImageType, content_type: &str, bytes: Vec<u8>, ) -> Result<Image>
Sourcepub async fn delete_all_images(
&self,
package: &str,
edit_id: &str,
locale: &str,
image_type: ImageType,
) -> Result<usize>
pub async fn delete_all_images( &self, package: &str, edit_id: &str, locale: &str, image_type: ImageType, ) -> Result<usize>
Remove every image in a bucket; returns how many Play reports deleted.
pub async fn get_track( &self, package: &str, edit_id: &str, track: &str, ) -> Result<Track>
pub async fn update_track( &self, package: &str, edit_id: &str, track: &Track, ) -> Result<Track>
Auto Trait Implementations§
impl !Freeze for PlayClient
impl !RefUnwindSafe for PlayClient
impl !UnwindSafe for PlayClient
impl Send for PlayClient
impl Sync for PlayClient
impl Unpin for PlayClient
impl UnsafeUnpin for PlayClient
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