use std::fmt::{Display, Formatter, Result as FmtResult};
use serde::{Deserialize};
#[derive(Debug, Deserialize)]
pub struct RemoteExceptionResponse {
#[serde(rename="RemoteException")]
pub remote_exception: RemoteException
}
#[derive(Debug, Deserialize)]
pub struct RemoteException {
pub exception: String,
#[serde(rename="javaClassName")]
pub java_class_name: String,
pub message: String
}
impl Display for RemoteException {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
write!(f,
"RemoteException[exception={}, java_class_name={}, msg='{}']",
self.exception, self.java_class_name, self.message
)
}
}
impl std::error::Error for RemoteException {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { None }
}
#[derive(Debug, Deserialize)]
pub struct ListStatusResponse {
#[serde(rename="FileStatuses")]
pub file_statuses: FileStatuses
}
#[derive(Debug, Deserialize)]
pub struct FileStatuses {
#[serde(rename="FileStatus")]
pub file_status: Vec<FileStatus>
}
#[derive(Debug, Deserialize)]
pub struct FileStatus {
#[serde(rename="accessTime")]
pub access_time: i64,
#[serde(rename="blockSize")]
pub block_size: i64,
pub group: String,
pub length: i64,
#[serde(rename="modificationTime")]
pub modification_time: i64,
pub owner: String,
#[serde(rename="pathSuffix")]
pub path_suffix: String,
pub permission: String,
pub replication: i32,
#[serde(rename="type")]
pub type_: String
}
pub mod dirent_type {
pub const FILE: &'static str = "FILE";
pub const DIRECTORY: &'static str = "DIRECTORY";
pub const SYMLINK: &'static str = "SYMLINK";
}
#[derive(Debug, Deserialize)]
pub struct FileStatusResponse {
#[serde(rename="FileStatus")]
pub file_status: FileStatus
}
#[derive(Debug, Deserialize)]
pub struct Boolean {
pub boolean: bool
}