pub enum AuthResolveError {
Store {
provider: String,
source: AuthStorageError,
},
ApiKey {
provider: String,
source: ApiKeyError,
},
OAuth(OAuthError),
ModelHeaders(ConfigValueError),
}Expand description
Credential resolution failures.
Variants§
Store
The credential store could not be read.
ApiKey
An API key, header or authHeader could not be resolved.
OAuth(OAuthError)
OAuth refresh failed.
ModelHeaders(ConfigValueError)
A model header could not be resolved.
Implementations§
Source§impl AuthResolveError
impl AuthResolveError
Sourcepub fn request_message(&self, provider: &str) -> String
pub fn request_message(&self, provider: &str) -> String
The message getApiKeyAndHeaders reports: the cause’s message, with
authHeader requires a resolved API key shown as No API key found for "<provider>".
Trait Implementations§
Source§impl Debug for AuthResolveError
impl Debug for AuthResolveError
Source§impl Display for AuthResolveError
impl Display for AuthResolveError
Source§impl Error for AuthResolveError
impl Error for AuthResolveError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<OAuthError> for AuthResolveError
impl From<OAuthError> for AuthResolveError
Source§fn from(source: OAuthError) -> Self
fn from(source: OAuthError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AuthResolveError
impl !UnwindSafe for AuthResolveError
impl Freeze for AuthResolveError
impl Send for AuthResolveError
impl Sync for AuthResolveError
impl Unpin for AuthResolveError
impl UnsafeUnpin for AuthResolveError
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