#[non_exhaustive]pub struct Options {
pub buffa: CodeGenConfig,
}Expand description
Options for ConnectRPC code generation.
These control both the underlying buffa message generation and the ConnectRPC service binding generation.
Construct via Options::default() then set fields on buffa directly
(the struct is #[non_exhaustive], so struct-update syntax is
unavailable from outside this crate).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.buffa: CodeGenConfigThe underlying buffa-codegen configuration. Set any
CodeGenConfig field directly here; connectrpc passes it through
verbatim except for CodeGenConfig::generate_views, which is
forced to true (service stubs require view types).
Options::default() starts from buffa’s defaults but enables
generate_json (the Connect protocol’s JSON codec needs it; buffa’s
own default is false).
buffa.extern_paths is used by generate_services to bake
absolute paths into service stubs (set a (".", "crate::proto")
catch-all so every type resolves); it is ignored by
generate_files (the unified super::-relative path).