MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / field_label

Function field_label

ra-rpc/src/openapi.rs:989–991  ·  view source on GitHub ↗
(field: &FieldDescriptorProto)

Source from the content-addressed store, hash-verified

987}
988
989fn field_label(field: &FieldDescriptorProto) -> FieldLabel {
990 FieldLabel::try_from(field.label.unwrap_or_default()).unwrap_or(FieldLabel::Optional)
991}
992
993fn field_type(field: &FieldDescriptorProto) -> FieldType {
994 FieldType::try_from(field.r#type.unwrap_or_default()).unwrap_or(FieldType::Message)

Callers 1

field_schemaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected