forked from Proxmox/proxmox
api/compat: drop more compat imports from api_schema.rs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
13f6a30f52
commit
ac21864dcf
@ -1,8 +1,8 @@
|
||||
use crate::api_schema::router::*;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use serde_json::Value;
|
||||
|
||||
use proxmox::api::{RpcEnvironment, RpcEnvironmentType};
|
||||
|
||||
/// Encapsulates information about the runtime environment
|
||||
pub struct RestEnvironment {
|
||||
env_type: RpcEnvironmentType,
|
||||
|
@ -1,11 +1,11 @@
|
||||
use failure::*;
|
||||
use serde_json::{json, Value};
|
||||
|
||||
use crate::api_schema::router::{HttpError, RpcEnvironment};
|
||||
|
||||
use hyper::{Body, Response, StatusCode};
|
||||
use hyper::header;
|
||||
|
||||
use proxmox::api::{HttpError, RpcEnvironment};
|
||||
|
||||
/// Extension to set error message for server side logging
|
||||
pub struct ErrorMessageExtension(pub String);
|
||||
|
||||
|
@ -7,10 +7,9 @@ use std::task::{Context, Poll};
|
||||
use futures::*;
|
||||
use hyper::{Body, Request, Response, StatusCode};
|
||||
|
||||
use proxmox::api::{http_err, ApiFuture};
|
||||
use proxmox::api::{http_err, ApiFuture, ApiHandler, HttpError, Router, RpcEnvironment};
|
||||
|
||||
use crate::tools;
|
||||
use crate::api_schema::router::*;
|
||||
use crate::server::formatter::*;
|
||||
use crate::server::WorkerTask;
|
||||
|
||||
|
@ -16,13 +16,15 @@ use serde_json::{json, Value};
|
||||
use tokio::fs::File;
|
||||
use url::form_urlencoded;
|
||||
|
||||
use proxmox::api::http_err;
|
||||
use proxmox::api::{ApiFuture, ApiHandler, ApiMethod, HttpError};
|
||||
use proxmox::api::{RpcEnvironment, RpcEnvironmentType};
|
||||
use proxmox::api::schema::{parse_simple_value, verify_json_object, parse_parameter_strings};
|
||||
|
||||
use super::environment::RestEnvironment;
|
||||
use super::formatter::*;
|
||||
use crate::api_schema::rpc_environment::*;
|
||||
use crate::api_schema::config::*;
|
||||
use crate::api_schema::router::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::auth_helpers::*;
|
||||
use crate::api_schema::config::ApiConfig;
|
||||
use crate::tools;
|
||||
|
||||
extern "C" { fn tzset(); }
|
||||
|
Loading…
Reference in New Issue
Block a user