We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 474390b commit f074f13Copy full SHA for f074f13
tonic-health/src/generated/grpc_health_v1.rs
@@ -37,10 +37,10 @@ pub mod health_check_response {
37
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
38
pub fn as_str_name(&self) -> &'static str {
39
match self {
40
- ServingStatus::Unknown => "UNKNOWN",
41
- ServingStatus::Serving => "SERVING",
42
- ServingStatus::NotServing => "NOT_SERVING",
43
- ServingStatus::ServiceUnknown => "SERVICE_UNKNOWN",
+ Self::Unknown => "UNKNOWN",
+ Self::Serving => "SERVING",
+ Self::NotServing => "NOT_SERVING",
+ Self::ServiceUnknown => "SERVICE_UNKNOWN",
44
}
45
46
/// Creates an enum from field names used in the ProtoBuf definition.
0 commit comments