Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 75c1bbc

Browse files
Nanashi-labvigoo
andauthored
BindingType for API Definition (#223)
Co-authored-by: Daniel Vigovszky <[email protected]>
1 parent eee6825 commit 75c1bbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

golem-cli/src/model/text/api_definition.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ struct RouteTableView {
2727
pub path: String,
2828
#[table(title = "Component Name")]
2929
pub component_name: ComponentName,
30+
#[table(title = "Binding Type")]
31+
pub binding_type: String,
3032
}
3133

3234
impl From<&RouteResponseData> for RouteTableView {
@@ -41,6 +43,10 @@ impl From<&RouteResponseData> for RouteTableView {
4143
.map(|component| component.name)
4244
.unwrap_or("<NA>".to_string())
4345
.into(),
46+
binding_type: match &value.binding.binding_type {
47+
Some(binding_type) => binding_type.to_string(),
48+
None => "<NA>".to_string(),
49+
},
4450
}
4551
}
4652
}

0 commit comments

Comments
 (0)