Can query hypervisor information
This commit is contained in:
@ -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>;
|
||||
|
Reference in New Issue
Block a user