1111use crate :: error:: Error ;
1212use crate :: pipeline:: telemetry:: { AttributeValue , TelemetryAttribute } ;
1313use crate :: transport_headers_policy:: { HeaderCapturePolicy , HeaderPropagationPolicy } ;
14- use crate :: { CapabilityId , Description , NodeId , NodeUrn , PortName } ;
14+ use crate :: { CapabilityId , Description , ExtensionId , NodeUrn , PortName } ;
1515use schemars:: JsonSchema ;
1616use serde:: { Deserialize , Serialize } ;
1717use serde_json:: Value ;
@@ -25,7 +25,7 @@ use std::collections::HashMap;
2525/// and returns an error so the user gets immediate feedback.
2626fn deserialize_no_dup_keys < ' de , D > (
2727 deserializer : D ,
28- ) -> Result < HashMap < CapabilityId , NodeId > , D :: Error >
28+ ) -> Result < HashMap < CapabilityId , ExtensionId > , D :: Error >
2929where
3030 D : serde:: Deserializer < ' de > ,
3131{
3535 struct NoDupVisitor ;
3636
3737 impl < ' de > Visitor < ' de > for NoDupVisitor {
38- type Value = HashMap < CapabilityId , NodeId > ;
38+ type Value = HashMap < CapabilityId , ExtensionId > ;
3939
4040 fn expecting ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
4141 f. write_str ( "a map with no duplicate keys" )
4949 "duplicate capability key '{key}'"
5050 ) ) ) ;
5151 }
52- let _ = result. insert ( CapabilityId :: from ( key) , NodeId :: from ( value) ) ;
52+ let _ = result. insert ( CapabilityId :: from ( key) , ExtensionId :: from ( value) ) ;
5353 }
5454 Ok ( result)
5555 }
@@ -115,7 +115,7 @@ pub struct NodeUserConfig {
115115 skip_serializing_if = "HashMap::is_empty" ,
116116 deserialize_with = "deserialize_no_dup_keys"
117117 ) ]
118- pub capabilities : HashMap < CapabilityId , NodeId > ,
118+ pub capabilities : HashMap < CapabilityId , ExtensionId > ,
119119
120120 /// Entity configuration for the node.
121121 ///
0 commit comments