mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 09:18:28 +00:00
init group
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum GroupStatus {
|
||||
Enabled,
|
||||
Disabled,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct GroupAddRemove {
|
||||
group: String,
|
||||
pub members: Vec<String>,
|
||||
#[serde(rename = "groupStatus")]
|
||||
pub status: GroupStatus,
|
||||
#[serde(rename = "isRemove")]
|
||||
pub is_remove: bool,
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
pub mod group;
|
||||
pub mod heal_commands;
|
||||
pub mod health;
|
||||
pub mod info_commands;
|
||||
@@ -8,5 +9,6 @@ pub mod trace;
|
||||
pub mod user;
|
||||
pub mod utils;
|
||||
|
||||
pub use group::*;
|
||||
pub use info_commands::*;
|
||||
pub use user::*;
|
||||
|
||||
Reference in New Issue
Block a user