pub enum CloudTranslationAPIv3 {
AuthCloudPlatform,
AuthCloudTranslation,
}Expand description
Cloud Translation API, v3
Variants§
AuthCloudPlatform
Documentation: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account., Scope: https://www.googleapis.com/auth/cloud-platform
AuthCloudTranslation
Documentation: Translate text from one language to another using Google Translate, Scope: https://www.googleapis.com/auth/cloud-translation
Trait Implementations§
Source§impl Clone for CloudTranslationAPIv3
impl Clone for CloudTranslationAPIv3
Source§fn clone(&self) -> CloudTranslationAPIv3
fn clone(&self) -> CloudTranslationAPIv3
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloudTranslationAPIv3
impl Debug for CloudTranslationAPIv3
Source§impl FromGoogleScope<CloudTranslationAPIv3> for CloudTranslationAPIv3
impl FromGoogleScope<CloudTranslationAPIv3> for CloudTranslationAPIv3
Source§fn from_google_scope(google_scope: &str) -> Result<CloudTranslationAPIv3, ()>
fn from_google_scope(google_scope: &str) -> Result<CloudTranslationAPIv3, ()>
Converting Google Scope string to enum
This might return
Err if you input an invalid Google Scope.Source§impl Hash for CloudTranslationAPIv3
impl Hash for CloudTranslationAPIv3
Source§impl PartialEq for CloudTranslationAPIv3
impl PartialEq for CloudTranslationAPIv3
Source§impl ToGoogleScope for CloudTranslationAPIv3
impl ToGoogleScope for CloudTranslationAPIv3
Source§fn to_google_scope(&self) -> &'static str
fn to_google_scope(&self) -> &'static str
Converting the enum back to
str literalimpl Copy for CloudTranslationAPIv3
impl Eq for CloudTranslationAPIv3
impl StructuralPartialEq for CloudTranslationAPIv3
Auto Trait Implementations§
impl Freeze for CloudTranslationAPIv3
impl RefUnwindSafe for CloudTranslationAPIv3
impl Send for CloudTranslationAPIv3
impl Sync for CloudTranslationAPIv3
impl Unpin for CloudTranslationAPIv3
impl UnwindSafe for CloudTranslationAPIv3
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