edc-web-ui 0.2.0

A Rust Web interface 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,
    }
  }
}