pve_api/simple/mod.rs
1//! Simple API
2//! This API is not type checked and doesn't validate anything you provide.
3//!
4//! To use:
5//!
6//! - Add [`SimpleApi`] to use statement
7//! - The [`SimpleApi`] functions will be accessible from any [`crate::Pve`]
8
9// SPDX-License-Identifier: MIT
10// Copyright (c) 2026 Luke Harding <luke@lukeh990.io>
11
12mod pve;
13mod request;
14
15pub use request::RequestBuilder;
16
17/// You almost certainly don't want to implement this. Do so at your own risk.
18/// Check [`crate::Pve`] for docs.
19pub trait SimpleApi {
20 fn simple_get<S: Into<String>>(&self, path: S) -> RequestBuilder;
21
22 fn simple_post<S: Into<String>>(&self, path: S) -> RequestBuilder;
23
24 fn simple_put<S: Into<String>>(&self, path: S) -> RequestBuilder;
25
26 fn simple_delete<S: Into<String>>(&self, path: S) -> RequestBuilder;
27}