pub struct ProjectConfig {
pub error_schema_ref: String,
pub unimplemented_methods: Vec<String>,
pub public_methods: Vec<String>,
pub plain_text_endpoints: Vec<PlainTextEndpoint>,
pub metrics_path: Option<String>,
pub readiness_path: Option<String>,
pub transforms: TransformConfig,
}Expand description
Project-level OpenAPI generation config.
Loaded from a YAML file via ProjectConfig::load, then applied to a
PatchConfig via [ProjectConfig::apply].
Fields§
§error_schema_ref: String$ref path for the REST error response schema.
unimplemented_methods: Vec<String>Proto method short names for endpoints returning UNIMPLEMENTED.
public_methods: Vec<String>Proto method short names for public (no-auth) endpoints.
plain_text_endpoints: Vec<PlainTextEndpoint>Endpoints that should use text/plain instead of application/json.
metrics_path: Option<String>Metrics endpoint path for response header enrichment (e.g., /metrics).
readiness_path: Option<String>Readiness probe path for adding 503 response (e.g., /health/ready).
transforms: TransformConfigTransform toggles.
Implementations§
Trait Implementations§
Source§impl Debug for ProjectConfig
impl Debug for ProjectConfig
Source§impl Default for ProjectConfig
impl Default for ProjectConfig
Source§impl<'de> Deserialize<'de> for ProjectConfigwhere
ProjectConfig: Default,
impl<'de> Deserialize<'de> for ProjectConfigwhere
ProjectConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectConfig
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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