pub enum AgentCardError {
Show 13 variants
EmptyName,
EmptyDescription,
EmptyVersion,
NoSupportedInterfaces,
NoInputModes,
NoOutputModes,
EmptySkillField {
index: usize,
field: &'static str,
},
EmptyProviderOrganization,
EmptyExtensionField {
index: usize,
field: &'static str,
},
EmptySecuritySchemeName,
EmptyAPIKeyParameterName {
name: Arc<str>,
},
EmptyHTTPAuthScheme {
name: Arc<str>,
},
EmptyOAuthFlows {
name: Arc<str>,
},
}Expand description
Errors a builder can raise.
Variants§
EmptyName
name was empty.
EmptyDescription
description was empty.
EmptyVersion
version was empty.
NoSupportedInterfaces
supported_interfaces was empty.
NoInputModes
default_input_modes was empty.
NoOutputModes
default_output_modes was empty.
EmptySkillField
A skill was given an empty id, name, or description.
Fields
EmptyProviderOrganization
The provider’s organization was empty.
EmptyExtensionField
A protocol extension was given an empty uri or description.
Fields
EmptySecuritySchemeName
A security scheme was registered with an empty name.
EmptyAPIKeyParameterName
An API key security scheme has an empty name (the
parameter name, not the scheme key).
EmptyHTTPAuthScheme
An HTTP security scheme has an empty scheme (the
IANA-registered auth scheme, e.g. Bearer).
EmptyOAuthFlows
An OAuth 2.0 security scheme has no flow set. The
proto’s oneof flow and the OpenAPI 3.x wire
form both require at least one of
authorizationCode, clientCredentials, or
deviceCode to be present.
Trait Implementations§
Source§impl Debug for AgentCardError
impl Debug for AgentCardError
Source§impl Display for AgentCardError
impl Display for AgentCardError
impl Eq for AgentCardError
Source§impl Error for AgentCardError
impl Error for AgentCardError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()