pub struct InflectionAiCredential {
pub provider: ProviderTrue,
pub api_key: String,
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: 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.
id: String
This is the unique identifier for the credential.
org_id: String
This is the unique identifier for the org that this credential belongs to.
created_at: String
This is the ISO 8601 date-time string of when the credential was created.
updated_at: String
This is the ISO 8601 date-time string of when the assistant was last updated.
name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl InflectionAiCredential
impl InflectionAiCredential
pub fn new( provider: ProviderTrue, api_key: String, id: String, org_id: String, created_at: String, updated_at: String, ) -> InflectionAiCredential
Trait Implementations§
Source§impl Clone for InflectionAiCredential
impl Clone for InflectionAiCredential
Source§fn clone(&self) -> InflectionAiCredential
fn clone(&self) -> InflectionAiCredential
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 InflectionAiCredential
impl Debug for InflectionAiCredential
Source§impl Default for InflectionAiCredential
impl Default for InflectionAiCredential
Source§fn default() -> InflectionAiCredential
fn default() -> InflectionAiCredential
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InflectionAiCredential
impl<'de> Deserialize<'de> for InflectionAiCredential
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 InflectionAiCredential
impl PartialEq for InflectionAiCredential
Source§impl Serialize for InflectionAiCredential
impl Serialize for InflectionAiCredential
impl StructuralPartialEq for InflectionAiCredential
Auto Trait Implementations§
impl Freeze for InflectionAiCredential
impl RefUnwindSafe for InflectionAiCredential
impl Send for InflectionAiCredential
impl Sync for InflectionAiCredential
impl Unpin for InflectionAiCredential
impl UnwindSafe for InflectionAiCredential
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