pub struct CreateInflectionAiCredentialDto {
pub provider: ProviderTrue,
pub api_key: String,
pub name: Option<String>,
}
Fields§
§provider: ProviderTrue
This is the api key for Pi in InflectionAI’s console. Get it from here: https://developers.inflection.ai/keys, billing will need to be setup
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 CreateInflectionAiCredentialDto
impl CreateInflectionAiCredentialDto
pub fn new( provider: ProviderTrue, api_key: String, ) -> CreateInflectionAiCredentialDto
Trait Implementations§
Source§impl Clone for CreateInflectionAiCredentialDto
impl Clone for CreateInflectionAiCredentialDto
Source§fn clone(&self) -> CreateInflectionAiCredentialDto
fn clone(&self) -> CreateInflectionAiCredentialDto
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 Default for CreateInflectionAiCredentialDto
impl Default for CreateInflectionAiCredentialDto
Source§fn default() -> CreateInflectionAiCredentialDto
fn default() -> CreateInflectionAiCredentialDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateInflectionAiCredentialDto
impl<'de> Deserialize<'de> for CreateInflectionAiCredentialDto
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 CreateInflectionAiCredentialDto
impl PartialEq for CreateInflectionAiCredentialDto
Source§fn eq(&self, other: &CreateInflectionAiCredentialDto) -> bool
fn eq(&self, other: &CreateInflectionAiCredentialDto) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateInflectionAiCredentialDto
Auto Trait Implementations§
impl Freeze for CreateInflectionAiCredentialDto
impl RefUnwindSafe for CreateInflectionAiCredentialDto
impl Send for CreateInflectionAiCredentialDto
impl Sync for CreateInflectionAiCredentialDto
impl Unpin for CreateInflectionAiCredentialDto
impl UnwindSafe for CreateInflectionAiCredentialDto
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