xnode-manager-sdk 1.0.1

Rust Software Development Kit for interacting with Xnode Manager
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{
    info::models::{Flake, FlakeQuery},
    utils::{Empty, SessionGetInput, SessionGetOutput, session_get},
};

pub fn scope() -> String {
    "/info".to_string()
}

pub type FlakeInput<'a> = SessionGetInput<'a, Empty, FlakeQuery>;
pub type FlakeOutput = Flake;
pub async fn flake(input: FlakeInput<'_>) -> SessionGetOutput<FlakeOutput> {
    session_get(input, scope(), |_path| "/flake").await
}