pub enum ProfileParams {
Enterprise {
project_number: String,
location: String,
endpoint_location: String,
},
Personal {
user_email: Option<String>,
},
Workspace {
customer_id: Option<String>,
admin_email: Option<String>,
},
}Variants§
Implementations§
Source§impl ProfileParams
impl ProfileParams
pub fn enterprise( project_number: impl Into<String>, location: impl Into<String>, endpoint_location: impl Into<String>, ) -> Self
pub fn personal<T: Into<String>>(user_email: Option<T>) -> Self
pub fn workspace<T: Into<String>, U: Into<String>>( customer_id: Option<T>, admin_email: Option<U>, ) -> Self
pub fn expected_profile(&self) -> ApiProfile
Trait Implementations§
Source§impl Clone for ProfileParams
impl Clone for ProfileParams
Source§fn clone(&self) -> ProfileParams
fn clone(&self) -> ProfileParams
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 moreAuto Trait Implementations§
impl Freeze for ProfileParams
impl RefUnwindSafe for ProfileParams
impl Send for ProfileParams
impl Sync for ProfileParams
impl Unpin for ProfileParams
impl UnwindSafe for ProfileParams
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