(category: i32)
| 5567 | } |
| 5568 | |
| 5569 | fn display_provider_category(category: i32) -> &'static str { |
| 5570 | match ProviderProfileCategory::try_from(category).unwrap_or(ProviderProfileCategory::Other) { |
| 5571 | ProviderProfileCategory::Inference => "INFERENCE", |
| 5572 | ProviderProfileCategory::Agent => "AGENT", |
| 5573 | ProviderProfileCategory::SourceControl => "SOURCE CONTROL", |
| 5574 | ProviderProfileCategory::Messaging => "MESSAGING", |
| 5575 | ProviderProfileCategory::Data => "DATA", |
| 5576 | ProviderProfileCategory::Knowledge => "KNOWLEDGE", |
| 5577 | ProviderProfileCategory::Other | ProviderProfileCategory::Unspecified => "OTHER", |
| 5578 | } |
| 5579 | } |
| 5580 | |
| 5581 | const PROVIDER_PROFILE_ID_MAX_WIDTH: usize = 32; |
| 5582 | const PROVIDER_PROFILE_DISPLAY_MAX_WIDTH: usize = 40; |
nothing calls this directly
no outgoing calls
no test coverage detected