The rsvici is a client library to configure, control, and monitor the IKE daemon
charon
using the VICI protocol. All the features are implemented on top of the
Tokio runtime to asynchronously interact with charon
.
toml
[dependencies]
rsvici = "0.1"
```rust use std::error::Error;
use serde::Deserialize;
struct Version { daemon: String, version: String, sysname: String, release: String, machine: String, }
async fn main() -> Result<(), Box
let version: Version = client.request("version", ()).await?;
println!("Version: {:#?}", version);
Ok(())
} ```
The serialization/deserialization implementation has certain behaviors specific to the VICI protocol:
bool
values are serialized to or deserialized from "yes"
or "no"
.Vec<T>
.