mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
format comment
This commit is contained in:
@@ -2,16 +2,16 @@ use common::error::Result;
|
||||
use rmp_serde::Serializer as rmpSerializer;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
// 定义QuotaType枚举类型
|
||||
// 定义 QuotaType 枚举类型
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum QuotaType {
|
||||
Hard,
|
||||
}
|
||||
|
||||
// 定义BucketQuota结构体
|
||||
// 定义 BucketQuota 结构体
|
||||
#[derive(Debug, Deserialize, Serialize, Default, Clone)]
|
||||
pub struct BucketQuota {
|
||||
quota: Option<u64>, // 使用Option来表示可能不存在的字段
|
||||
quota: Option<u64>, // 使用 Option 来表示可能不存在的字段
|
||||
|
||||
size: u64,
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ pub struct LatencyStat {
|
||||
max: Duration, // 最大延迟
|
||||
}
|
||||
|
||||
// 定义BucketTarget结构体
|
||||
// 定义 BucketTarget 结构体
|
||||
#[derive(Debug, Deserialize, Serialize, Default, Clone)]
|
||||
pub struct BucketTarget {
|
||||
source_bucket: String,
|
||||
|
||||
Reference in New Issue
Block a user