pub struct CreateGroqCredentialDto {
pub provider: Provider,
pub api_key: String,
pub name: Option<String>,
}Fields§
§provider: Provider§api_key: StringThis is not returned in the API.
name: Option<String>This is the name of credential. This is just for your reference.
Implementations§
Source§impl CreateGroqCredentialDto
impl CreateGroqCredentialDto
pub fn new(provider: Provider, api_key: String) -> CreateGroqCredentialDto
Trait Implementations§
Source§impl Clone for CreateGroqCredentialDto
impl Clone for CreateGroqCredentialDto
Source§fn clone(&self) -> CreateGroqCredentialDto
fn clone(&self) -> CreateGroqCredentialDto
Returns a copy 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 CreateGroqCredentialDto
impl Debug for CreateGroqCredentialDto
Source§impl Default for CreateGroqCredentialDto
impl Default for CreateGroqCredentialDto
Source§fn default() -> CreateGroqCredentialDto
fn default() -> CreateGroqCredentialDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateGroqCredentialDto
impl<'de> Deserialize<'de> for CreateGroqCredentialDto
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
Source§impl PartialEq for CreateGroqCredentialDto
impl PartialEq for CreateGroqCredentialDto
Source§impl Serialize for CreateGroqCredentialDto
impl Serialize for CreateGroqCredentialDto
impl StructuralPartialEq for CreateGroqCredentialDto
Auto Trait Implementations§
impl Freeze for CreateGroqCredentialDto
impl RefUnwindSafe for CreateGroqCredentialDto
impl Send for CreateGroqCredentialDto
impl Sync for CreateGroqCredentialDto
impl Unpin for CreateGroqCredentialDto
impl UnwindSafe for CreateGroqCredentialDto
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