api_free_reseau_fr 0.1.0

Rust client for interacting with free-reseau.fr API
Documentation

api_free_reseau_fr

Crates.io Docs.rs CI

Rust client for interacting with free-reseau.fr API

Feature

  • Async (reqwest)
  • serde (feature flag)

Usage

use api_free_reseau_fr::{Client, DSLAM, Error};

#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), Error> {
    let client = Client::new();

    let target = DSLAM::new("mon", 75, 1);
    //or
    let target = DSLAM::from("mon75-1");

    let status = client.get_dslam_status(&target).await?;

    println!("DSLAM `{target}` is {status}");

    Ok(())
}

More examples provided in the demo

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.