pub enum CodegenErrKind {
Show 17 variants
InvalidPluginOption,
UnknownPluginOption,
OpenApiPluginFailed,
OpenApiInvalidDocument,
OpenApiMergeConflict,
AsyncApiInvalidDocument,
FileToGenerateNotFound,
InvalidDescriptor,
InvalidHttpAnnotation,
UnsupportedHttpRule,
PathFieldNotFound,
RequestMessageNotFound,
BodyFieldNotFound,
TypeResolutionFailed,
DuplicateGeneratedIdentifier,
DuplicateRoute,
ApiNameCollision,
}Expand description
Error categories produced by the connect2axum protoc generators.
Variants§
InvalidPluginOption
A known plugin option was present but had an invalid value.
UnknownPluginOption
The plugin parameter string contained an unsupported option name.
OpenApiPluginFailed
The wrapped grpc-gateway OpenAPI generator failed.
OpenApiInvalidDocument
The OpenAPI document was not valid JSON or failed structural validation.
OpenApiMergeConflict
Multiple OpenAPI documents could not be merged safely.
AsyncApiInvalidDocument
The generated AsyncAPI document failed structural validation.
FileToGenerateNotFound
A requested file_to_generate was missing from the descriptor set.
InvalidDescriptor
A protobuf descriptor was malformed or incomplete.
InvalidHttpAnnotation
A google.api.http annotation could not be decoded.
UnsupportedHttpRule
A google.api.http rule used an unsupported binding shape.
PathFieldNotFound
A field referenced by a path template was missing from the request message.
RequestMessageNotFound
A method request message could not be resolved.
BodyFieldNotFound
A field referenced by an HTTP body option was missing from the request message.
TypeResolutionFailed
A protobuf type could not be mapped to the generated Rust type path.
DuplicateGeneratedIdentifier
Generated Rust identifiers would collide.
DuplicateRoute
Two generated handlers would register the same HTTP route.
ApiNameCollision
Short API document component names would collide.
Trait Implementations§
Source§impl Clone for CodegenErrKind
impl Clone for CodegenErrKind
Source§fn clone(&self) -> CodegenErrKind
fn clone(&self) -> CodegenErrKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CodegenErrKind
impl Debug for CodegenErrKind
Source§impl UniKind for CodegenErrKind
impl UniKind for CodegenErrKind
Source§fn context(&self, _cause: Option<Cause<'_>>) -> Option<Cow<'static, str>>
fn context(&self, _cause: Option<Cause<'_>>) -> Option<Cow<'static, str>>
None.Source§fn value(&self, _cause: Option<Cause<'_>>) -> Cow<'static, str>
fn value(&self, _cause: Option<Cause<'_>>) -> Cow<'static, str>
"".