pub struct BuilderPolicy { /* private fields */ }Expand description
Controls format-neutral archive construction behavior.
Implementations§
Source§impl BuilderPolicy
impl BuilderPolicy
Sourcepub fn name_validator(
self,
validator: Option<fn(&str) -> bool>,
) -> BuilderPolicy
pub fn name_validator( self, validator: Option<fn(&str) -> bool>, ) -> BuilderPolicy
Configures validation for member names and preserved symbolic-link targets.
Passing None disables configurable name validation. UTF-8 and
archive-format requirements still apply.
Sourcepub fn symlink_policy(self, policy: SymlinkPolicy) -> BuilderPolicy
pub fn symlink_policy(self, policy: SymlinkPolicy) -> BuilderPolicy
Configures how recursive builds handle source symbolic links.
Symbolic links are rejected by default. Use
SymlinkPolicy::Preserve to write link members instead.
Trait Implementations§
Source§impl Clone for BuilderPolicy
impl Clone for BuilderPolicy
Source§fn clone(&self) -> BuilderPolicy
fn clone(&self) -> BuilderPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuilderPolicy
Source§impl Debug for BuilderPolicy
impl Debug for BuilderPolicy
Source§impl Default for BuilderPolicy
impl Default for BuilderPolicy
Source§fn default() -> BuilderPolicy
fn default() -> BuilderPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuilderPolicy
impl RefUnwindSafe for BuilderPolicy
impl Send for BuilderPolicy
impl Sync for BuilderPolicy
impl Unpin for BuilderPolicy
impl UnsafeUnpin for BuilderPolicy
impl UnwindSafe for BuilderPolicy
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