Can query hypervisor information

This commit is contained in:
2023-09-06 18:54:38 +02:00
parent fbe11af121
commit 57c023b45b
14 changed files with 253 additions and 9 deletions

View File

@ -1,5 +1,6 @@
use crate::libvirt_client::LibVirtClient;
use actix_web::body::BoxBody;
use actix_web::HttpResponse;
use actix_web::{web, HttpResponse};
use std::error::Error;
use std::fmt::{Display, Formatter};
use std::io::ErrorKind;
@ -78,3 +79,5 @@ impl From<reqwest::header::ToStrError> for HttpErr {
}
pub type HttpResult = Result<HttpResponse, HttpErr>;
pub type LibVirtReq = web::Data<LibVirtClient>;