edc-web-components 0.8.1

A Rust Web Components with patternfly-yew client for EDC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use edc_connector_client::types::contract_negotiation::ContractNegotiationKind as EdcContractNegotiationKind;

#[derive(Debug, Clone, strum::Display)]
pub enum ContractNegotiationKind {
  Consumer,
  Provider,
}
impl From<&EdcContractNegotiationKind> for ContractNegotiationKind {
  fn from(kind: &EdcContractNegotiationKind) -> Self {
    match kind {
      EdcContractNegotiationKind::Consumer => ContractNegotiationKind::Consumer,
      EdcContractNegotiationKind::Provider => ContractNegotiationKind::Provider,
    }
  }
}