pub struct StoragePolicy {
pub id: String,
pub name: String,
pub type_: String,
pub max_size: u64,
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 relay: Option<bool>,
pub weight: Option<u64>,
pub children: Option<Vec<StoragePolicy>>,
pub chunk_concurrency: Option<u32>,
}Fields§
§id: String§name: String§type_: String§max_size: u64§allowed_suffix: Option<Vec<String>>§denied_suffix: Option<Vec<String>>§allowed_name_regexp: Option<String>§denied_name_regexp: Option<String>§relay: Option<bool>§weight: Option<u64>§children: Option<Vec<StoragePolicy>>§chunk_concurrency: Option<u32>Trait Implementations§
Source§impl Clone for StoragePolicy
impl Clone for StoragePolicy
Source§fn clone(&self) -> StoragePolicy
fn clone(&self) -> StoragePolicy
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 StoragePolicy
impl Debug for StoragePolicy
Source§impl<'de> Deserialize<'de> for StoragePolicy
impl<'de> Deserialize<'de> for StoragePolicy
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 StoragePolicy
impl RefUnwindSafe for StoragePolicy
impl Send for StoragePolicy
impl Sync for StoragePolicy
impl Unpin for StoragePolicy
impl UnwindSafe for StoragePolicy
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