1#[derive(Debug, Clone)] 2pub struct QiniuErr { 3 pub message: String, 4 pub code: QiniuErrCode, 5} 6 7#[derive(Debug, Clone)] 8pub enum QiniuErrCode { 9 BadResponse, // Bad Response 10 Inval, // Invalid argument 11 Unknown, // Unknown error 12}