1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! # rufish
//!
//! An asynchronous Redfish client library for BMC/server management.
//!
//! ## Quick Start
//!
//! ```no_run
//! use rufish::RedfishClient;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut client = RedfishClient::new("10.0.0.5", "admin", "password")?;
//! client.login().await?;
//!
//! let root = client.get_service_root().await?;
//! println!("Redfish version: {:?}", root.redfish_version);
//!
//! let systems = client.list_systems().await?;
//! println!("Systems: {:?}", systems.members_count);
//!
//! client.logout().await?;
//! Ok(())
//! }
//! ```
//!
//! ## Builder Pattern
//!
//! ```no_run
//! use rufish::RedfishClient;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Custom reqwest client + existing session token
//! let custom = reqwest::Client::builder()
//! .use_native_tls()
//! .http1_only()
//! .build()?;
//!
//! let client = RedfishClient::builder("10.0.0.5")
//! .credentials("admin", "password")
//! .client(custom)
//! .session("saved-token", "/redfish/v1/SessionService/Sessions/1")
//! .build()?;
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ;
pub use *;