pub enum ApiErrorRemedy {
RefreshCommand,
RefreshCredentials,
Adc,
GatewayToken,
HostManaged,
ModelAccess,
Unknown(String),
}Expand description
How to repair failed provider credentials (ApiErrorParams::remedy).
Variants§
RefreshCommand
A configured refresh command (awsAuthRefresh / gcpAuthRefresh)
refreshes the credentials.
RefreshCredentials
Refresh the provider’s credentials by hand; no command is configured.
Adc
Refresh the Google application default credentials or the
GOOGLE_APPLICATION_CREDENTIALS key file.
GatewayToken
Replace the gateway token supplied through ANTHROPIC_AUTH_TOKEN or
ANTHROPIC_CUSTOM_HEADERS.
HostManaged
The host application owns these credentials.
ModelAccess
The credentials work but the model is not enabled for this account and region (Amazon Bedrock).
Unknown(String)
A remedy not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for ApiErrorRemedy
impl Clone for ApiErrorRemedy
Source§fn clone(&self) -> ApiErrorRemedy
fn clone(&self) -> ApiErrorRemedy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApiErrorRemedy
impl Debug for ApiErrorRemedy
Source§impl<'de> Deserialize<'de> for ApiErrorRemedy
impl<'de> Deserialize<'de> for ApiErrorRemedy
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ApiErrorRemedy
impl Display for ApiErrorRemedy
impl Eq for ApiErrorRemedy
Source§impl From<&str> for ApiErrorRemedy
impl From<&str> for ApiErrorRemedy
Source§impl Hash for ApiErrorRemedy
impl Hash for ApiErrorRemedy
Source§impl PartialEq for ApiErrorRemedy
impl PartialEq for ApiErrorRemedy
Source§impl Serialize for ApiErrorRemedy
impl Serialize for ApiErrorRemedy
impl StructuralPartialEq for ApiErrorRemedy
Auto Trait Implementations§
impl Freeze for ApiErrorRemedy
impl RefUnwindSafe for ApiErrorRemedy
impl Send for ApiErrorRemedy
impl Sync for ApiErrorRemedy
impl Unpin for ApiErrorRemedy
impl UnsafeUnpin for ApiErrorRemedy
impl UnwindSafe for ApiErrorRemedy
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