pub struct PolicyConfig {
pub destination: PathBuf,
pub max_single_file: u64,
pub max_total: u64,
pub max_files: usize,
pub max_depth: usize,
pub symlink_behavior: SymlinkBehavior,
}Expand description
Configuration for building a default policy chain.
Fields§
§destination: PathBuf§max_single_file: u64§max_total: u64§max_files: usize§max_depth: usize§symlink_behavior: SymlinkBehaviorImplementations§
Source§impl PolicyConfig
impl PolicyConfig
Sourcepub fn build(&self) -> Result<PolicyChain, Error>
pub fn build(&self) -> Result<PolicyChain, Error>
Build a policy chain from this configuration.
Trait Implementations§
Source§impl Clone for PolicyConfig
impl Clone for PolicyConfig
Source§fn clone(&self) -> PolicyConfig
fn clone(&self) -> PolicyConfig
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 moreAuto Trait Implementations§
impl Freeze for PolicyConfig
impl RefUnwindSafe for PolicyConfig
impl Send for PolicyConfig
impl Sync for PolicyConfig
impl Unpin for PolicyConfig
impl UnwindSafe for PolicyConfig
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