pub struct SystemapkMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on systemapk resources.
It is not used directly, but through the AndroidPublisher hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_androidpublisher3 as androidpublisher3;
use androidpublisher3::{AndroidPublisher, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = AndroidPublisher::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `variants_create(...)`, `variants_download(...)`, `variants_get(...)` and `variants_list(...)`
// to build up your call.
let rb = hub.systemapks();Implementations§
Source§impl<'a, C> SystemapkMethods<'a, C>
impl<'a, C> SystemapkMethods<'a, C>
Sourcepub fn variants_create(
&self,
request: Variant,
package_name: &str,
version_code: i64,
) -> SystemapkVariantCreateCall<'a, C>
pub fn variants_create( &self, request: Variant, package_name: &str, version_code: i64, ) -> SystemapkVariantCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App Bundle.
§Arguments
request- No description provided.packageName- Package name of the app.versionCode- The version code of the App Bundle.
Sourcepub fn variants_download(
&self,
package_name: &str,
version_code: i64,
variant_id: u32,
) -> SystemapkVariantDownloadCall<'a, C>
pub fn variants_download( &self, package_name: &str, version_code: i64, variant_id: u32, ) -> SystemapkVariantDownloadCall<'a, C>
Create a builder to help you perform the following task:
Downloads a previously created system APK which is suitable for inclusion in a system image.
§Arguments
packageName- Package name of the app.versionCode- The version code of the App Bundle.variantId- The ID of a previously created system APK variant.
Sourcepub fn variants_get(
&self,
package_name: &str,
version_code: i64,
variant_id: u32,
) -> SystemapkVariantGetCall<'a, C>
pub fn variants_get( &self, package_name: &str, version_code: i64, variant_id: u32, ) -> SystemapkVariantGetCall<'a, C>
Create a builder to help you perform the following task:
Returns a previously created system APK variant.
§Arguments
packageName- Package name of the app.versionCode- The version code of the App Bundle.variantId- The ID of a previously created system APK variant.
Sourcepub fn variants_list(
&self,
package_name: &str,
version_code: i64,
) -> SystemapkVariantListCall<'a, C>
pub fn variants_list( &self, package_name: &str, version_code: i64, ) -> SystemapkVariantListCall<'a, C>
Create a builder to help you perform the following task:
Returns the list of previously created system APK variants.
§Arguments
packageName- Package name of the app.versionCode- The version code of the App Bundle.
Trait Implementations§
impl<'a, C> MethodsBuilder for SystemapkMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for SystemapkMethods<'a, C>
impl<'a, C> !RefUnwindSafe for SystemapkMethods<'a, C>
impl<'a, C> Send for SystemapkMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for SystemapkMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for SystemapkMethods<'a, C>
impl<'a, C> !UnwindSafe for SystemapkMethods<'a, C>
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