Struct google_books1::api::LayerMethods
source · pub struct LayerMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on layer resources.
It is not used directly, but through the Books
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_books1 as books1;
use std::default::Default;
use books1::{Books, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Books::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `annotation_data_get(...)`, `annotation_data_list(...)`, `get(...)`, `list(...)`, `volume_annotations_get(...)` and `volume_annotations_list(...)`
// to build up your call.
let rb = hub.layers();
Implementations§
source§impl<'a, S> LayerMethods<'a, S>
impl<'a, S> LayerMethods<'a, S>
sourcepub fn annotation_data_get(
&self,
volume_id: &str,
layer_id: &str,
annotation_data_id: &str,
content_version: &str
) -> LayerAnnotationDataGetCall<'a, S>
pub fn annotation_data_get( &self, volume_id: &str, layer_id: &str, annotation_data_id: &str, content_version: &str ) -> LayerAnnotationDataGetCall<'a, S>
Create a builder to help you perform the following task:
Gets the annotation data.
§Arguments
volumeId
- The volume to retrieve annotations for.layerId
- The ID for the layer to get the annotations.annotationDataId
- The ID of the annotation data to retrieve.contentVersion
- The content version for the volume you are trying to retrieve.
sourcepub fn annotation_data_list(
&self,
volume_id: &str,
layer_id: &str,
content_version: &str
) -> LayerAnnotationDataListCall<'a, S>
pub fn annotation_data_list( &self, volume_id: &str, layer_id: &str, content_version: &str ) -> LayerAnnotationDataListCall<'a, S>
Create a builder to help you perform the following task:
Gets the annotation data for a volume and layer.
§Arguments
volumeId
- The volume to retrieve annotation data for.layerId
- The ID for the layer to get the annotation data.contentVersion
- The content version for the requested volume.
sourcepub fn volume_annotations_get(
&self,
volume_id: &str,
layer_id: &str,
annotation_id: &str
) -> LayerVolumeAnnotationGetCall<'a, S>
pub fn volume_annotations_get( &self, volume_id: &str, layer_id: &str, annotation_id: &str ) -> LayerVolumeAnnotationGetCall<'a, S>
Create a builder to help you perform the following task:
Gets the volume annotation.
§Arguments
volumeId
- The volume to retrieve annotations for.layerId
- The ID for the layer to get the annotations.annotationId
- The ID of the volume annotation to retrieve.
sourcepub fn volume_annotations_list(
&self,
volume_id: &str,
layer_id: &str,
content_version: &str
) -> LayerVolumeAnnotationListCall<'a, S>
pub fn volume_annotations_list( &self, volume_id: &str, layer_id: &str, content_version: &str ) -> LayerVolumeAnnotationListCall<'a, S>
Create a builder to help you perform the following task:
Gets the volume annotations for a volume and layer.
§Arguments
volumeId
- The volume to retrieve annotations for.layerId
- The ID for the layer to get the annotations.contentVersion
- The content version for the requested volume.
sourcepub fn get(&self, volume_id: &str, summary_id: &str) -> LayerGetCall<'a, S>
pub fn get(&self, volume_id: &str, summary_id: &str) -> LayerGetCall<'a, S>
Create a builder to help you perform the following task:
Gets the layer summary for a volume.
§Arguments
volumeId
- The volume to retrieve layers for.summaryId
- The ID for the layer to get the summary for.
sourcepub fn list(&self, volume_id: &str) -> LayerListCall<'a, S>
pub fn list(&self, volume_id: &str) -> LayerListCall<'a, S>
Create a builder to help you perform the following task:
List the layer summaries for a volume.
§Arguments
volumeId
- The volume to retrieve layers for.
Trait Implementations§
impl<'a, S> MethodsBuilder for LayerMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for LayerMethods<'a, S>
impl<'a, S> Send for LayerMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for LayerMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for LayerMethods<'a, S>
impl<'a, S> !UnwindSafe for LayerMethods<'a, S>
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