pub struct TierConfig {
pub tier_type: TierType,
pub name: String,
pub s3: Option<TierS3>,
pub rustfs: Option<TierRustFS>,
pub minio: Option<TierMinIO>,
pub aliyun: Option<TierAliyun>,
pub tencent: Option<TierTencent>,
pub huaweicloud: Option<TierHuaweicloud>,
pub azure: Option<TierAzure>,
pub gcs: Option<TierGCS>,
pub r2: Option<TierR2>,
}Expand description
Tier configuration matching the RustFS admin API format.
The backend uses a polymorphic structure: the type field selects which
sub-config (s3, rustfs, minio, etc.) is active. The tier name lives
inside the sub-config.
Fields§
§tier_type: TierType§name: StringTier name — extracted from the active sub-config on the backend side. Populated by the CLI when building a TierConfig for add operations.
s3: Option<TierS3>§rustfs: Option<TierRustFS>§minio: Option<TierMinIO>§aliyun: Option<TierAliyun>§tencent: Option<TierTencent>§huaweicloud: Option<TierHuaweicloud>§azure: Option<TierAzure>§gcs: Option<TierGCS>§r2: Option<TierR2>Implementations§
Source§impl TierConfig
impl TierConfig
Trait Implementations§
Source§impl Clone for TierConfig
impl Clone for TierConfig
Source§fn clone(&self) -> TierConfig
fn clone(&self) -> TierConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TierConfig
impl Debug for TierConfig
Source§impl Default for TierConfig
impl Default for TierConfig
Source§impl<'de> Deserialize<'de> for TierConfigwhere
TierConfig: Default,
impl<'de> Deserialize<'de> for TierConfigwhere
TierConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TierConfig
impl RefUnwindSafe for TierConfig
impl Send for TierConfig
impl Sync for TierConfig
impl Unpin for TierConfig
impl UnsafeUnpin for TierConfig
impl UnwindSafe for TierConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more