Crate edc_connector_client

Source
Expand description

Experimental client for EDC (Eclipse Dataspace Connector)

You can use edc-connector-client this lines in your Cargo.toml

[dependencies]
edc-connector-client = "<version>"

Here it is an usage example:


use edc_connector_client::{EdcConnectorClient, Auth};


#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {

   let client = EdcConnectorClient::builder()
       .management_url("http://myedc")
       .with_auth(Auth::api_token("password"))
       .build()?;

   let asset = client.assets().get("1").await?;
   println!("Got {:?}", asset);

   Ok(())
}

Modules§

Structs§

Enums§

Constants§

Type Aliases§