pub struct ProxmoxApi {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl ProxmoxApi
impl ProxmoxApi
pub async fn get_node_list(&self) -> Result<NodeResponse, Error>
pub async fn get_node_status(&self, node: &str) -> Result<String, Error>
Source§impl ProxmoxApi
impl ProxmoxApi
pub async fn get_node_qemu(&self, node: &str) -> Result<NodeQemuResponse, Error>
Source§impl ProxmoxApi
impl ProxmoxApi
pub fn new(base_url: String) -> Self
pub async fn authenticate( &mut self, username: &str, password: &str, realm: &str, ) -> Result<ProxmoxResponse<AuthResponse>, Error>
pub async fn get_version(&self) -> Result<ProxmoxResponse<VersionInfo>, Error>
Auto Trait Implementations§
impl Freeze for ProxmoxApi
impl !RefUnwindSafe for ProxmoxApi
impl Send for ProxmoxApi
impl Sync for ProxmoxApi
impl Unpin for ProxmoxApi
impl !UnwindSafe for ProxmoxApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more