Skip to main content

SimpleApi

Trait SimpleApi 

Source
pub trait SimpleApi {
    // Required methods
    fn simple_get<S: Into<String>>(&self, path: S) -> RequestBuilder;
    fn simple_post<S: Into<String>>(&self, path: S) -> RequestBuilder;
    fn simple_put<S: Into<String>>(&self, path: S) -> RequestBuilder;
    fn simple_delete<S: Into<String>>(&self, path: S) -> RequestBuilder;
}
Expand description

You almost certainly don’t want to implement this. Do so at your own risk. Check crate::Pve for docs.

Required Methods§

Source

fn simple_get<S: Into<String>>(&self, path: S) -> RequestBuilder

Source

fn simple_post<S: Into<String>>(&self, path: S) -> RequestBuilder

Source

fn simple_put<S: Into<String>>(&self, path: S) -> RequestBuilder

Source

fn simple_delete<S: Into<String>>(&self, path: S) -> RequestBuilder

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SimpleApi for Pve

This feels self-explanatory. Call the correct function for whatever HTTP method you want.

REMEMBER: The path specified must NOT contain a leading slash.