pub struct CreateGoogleCredentialDto {
pub provider: ProviderTrue,
pub api_key: String,
pub name: Option<String>,
}
Fields§
§provider: ProviderTrue
This is the key for Gemini in Google AI Studio. Get it from here: https://aistudio.google.com/app/apikey
api_key: String
This is not returned in the API.
name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl CreateGoogleCredentialDto
impl CreateGoogleCredentialDto
pub fn new(provider: ProviderTrue, api_key: String) -> CreateGoogleCredentialDto
Trait Implementations§
Source§impl Clone for CreateGoogleCredentialDto
impl Clone for CreateGoogleCredentialDto
Source§fn clone(&self) -> CreateGoogleCredentialDto
fn clone(&self) -> CreateGoogleCredentialDto
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateGoogleCredentialDto
impl Debug for CreateGoogleCredentialDto
Source§impl Default for CreateGoogleCredentialDto
impl Default for CreateGoogleCredentialDto
Source§fn default() -> CreateGoogleCredentialDto
fn default() -> CreateGoogleCredentialDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateGoogleCredentialDto
impl<'de> Deserialize<'de> for CreateGoogleCredentialDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CreateGoogleCredentialDto
Auto Trait Implementations§
impl Freeze for CreateGoogleCredentialDto
impl RefUnwindSafe for CreateGoogleCredentialDto
impl Send for CreateGoogleCredentialDto
impl Sync for CreateGoogleCredentialDto
impl Unpin for CreateGoogleCredentialDto
impl UnwindSafe for CreateGoogleCredentialDto
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