Skip to main content

ApiCallBase

Trait ApiCallBase 

Source
pub trait ApiCallBase<'a, HUB, RETURN> {
Show 18 methods // Required methods fn get_method_path(&self) -> &str; fn get_media_upload_path_simple(&self) -> Option<&str>; fn get_media_upload_path_resumable(&self) -> Option<&str>; fn get_query_params(&self) -> Vec<(&str, String)>; fn get_query_param_order(&self) -> Vec<&str>; fn get_scopes() -> Vec<impl Scope>; fn get_hub(&self) -> Result<&impl Hub, ApiCallError>; fn set_hub<'b>(&mut self, hub: &'b HUB) where 'b: 'a; fn has_body(&self) -> bool; fn take_body(&mut self) -> Option<String>; fn has_media_upload(&self) -> bool; fn is_media_download(&self) -> bool; fn take_media_upload( &mut self, ) -> Option<MediaUpload<dyn MediaUploadStream>>; fn take_media_download( &mut self, ) -> Option<MediaDownload<dyn MediaDownloadStream>>; fn get_media_download( &mut self, ) -> Option<&MediaDownload<dyn MediaDownloadStream>>; fn has_resumable_media_upload(&self) -> bool; fn take_resumable_media_upload(&mut self) -> Option<ResumableBody>; fn get_request_method() -> Method;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§