pub struct InitKey {
pub variable: String,
pub set: bool,
pub source: Option<String>,
}Expand description
The model key init looked for.
Fields§
§variable: StringANTHROPIC_API_KEY, OPENAI_API_KEY, AWS_BEARER_TOKEN_BEDROCK.
set: boolSet in this environment (Bedrock: a credential source was found).
source: Option<String>Bedrock: where the AWS chain will take credentials from, by kind and
name (aws login session (profile dev)), never a value.
Trait Implementations§
impl Eq for InitKey
Source§impl JsonSchema for InitKey
impl JsonSchema for InitKey
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for InitKey
Auto Trait Implementations§
impl Freeze for InitKey
impl RefUnwindSafe for InitKey
impl Send for InitKey
impl Sync for InitKey
impl Unpin for InitKey
impl UnsafeUnpin for InitKey
impl UnwindSafe for InitKey
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