redfish 0.3.2

Production-grade Rust SDK for DMTF Redfish (async-first, optional blocking).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! List Redfish accounts.

use redfish::{Auth, Client};

#[tokio::main]
async fn main() -> Result<(), redfish::Error> {
    let client = Client::builder("https://bmc.example.com")?
        .auth(Auth::basic("admin", "password"))
        .build()?;

    let accounts = client.account_service().list_accounts().await?;
    for m in accounts.members {
        println!("Account: {}", m.odata_id);
    }

    Ok(())
}