pub struct NewStoragePolicy {
pub id: String,
pub name: String,
pub policy_type: StoragePolicyType,
pub allowed_suffix: Option<Vec<String>>,
pub denied_suffix: Option<Vec<String>>,
pub allowed_name_regexp: Option<String>,
pub denied_name_regexp: Option<String>,
pub max_size: f64,
pub relay: Option<bool>,
pub weight: Option<f64>,
pub children: Option<Vec<NewStoragePolicy>>,
pub chunk_concurrency: Option<i32>,
}Expand description
Extended storage policy
Fields§
§id: String§name: String§policy_type: StoragePolicyType§allowed_suffix: Option<Vec<String>>§denied_suffix: Option<Vec<String>>§allowed_name_regexp: Option<String>§denied_name_regexp: Option<String>§max_size: f64§relay: Option<bool>§weight: Option<f64>§children: Option<Vec<NewStoragePolicy>>§chunk_concurrency: Option<i32>Trait Implementations§
Source§impl Clone for NewStoragePolicy
impl Clone for NewStoragePolicy
Source§fn clone(&self) -> NewStoragePolicy
fn clone(&self) -> NewStoragePolicy
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 NewStoragePolicy
impl Debug for NewStoragePolicy
Source§impl<'de> Deserialize<'de> for NewStoragePolicy
impl<'de> Deserialize<'de> for NewStoragePolicy
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 NewStoragePolicy
impl RefUnwindSafe for NewStoragePolicy
impl Send for NewStoragePolicy
impl Sync for NewStoragePolicy
impl Unpin for NewStoragePolicy
impl UnwindSafe for NewStoragePolicy
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