pub struct ManifestOptionsBuilder { /* private fields */ }Expand description
Builder for ManifestOptions.
Implementations§
Source§impl ManifestOptionsBuilder
impl ManifestOptionsBuilder
Sets hidden-file handling.
Sourcepub const fn symlinks(self, policy: SymlinkPolicy) -> Self
pub const fn symlinks(self, policy: SymlinkPolicy) -> Self
Sets symbolic-link handling.
Sourcepub const fn special_files(self, policy: SpecialFilePolicy) -> Self
pub const fn special_files(self, policy: SpecialFilePolicy) -> Self
Sets special-file handling.
Sourcepub const fn empty_files(self, policy: EmptyFilePolicy) -> Self
pub const fn empty_files(self, policy: EmptyFilePolicy) -> Self
Sets zero-length file handling.
Sourcepub const fn empty_directories(self, policy: EmptyDirectoryPolicy) -> Self
pub const fn empty_directories(self, policy: EmptyDirectoryPolicy) -> Self
Sets empty-directory handling.
Sourcepub fn include(
self,
patterns: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn include( self, patterns: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Replaces include glob patterns.
Sourcepub fn exclude(
self,
patterns: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn exclude( self, patterns: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Replaces exclude glob patterns.
Sourcepub fn include_raw_paths(
self,
paths: impl IntoIterator<Item = Vec<Vec<u8>>>,
) -> Self
pub fn include_raw_paths( self, paths: impl IntoIterator<Item = Vec<Vec<u8>>>, ) -> Self
Replaces exact raw-byte torrent paths to include.
Sourcepub fn exclude_raw_paths(
self,
paths: impl IntoIterator<Item = Vec<Vec<u8>>>,
) -> Self
pub fn exclude_raw_paths( self, paths: impl IntoIterator<Item = Vec<Vec<u8>>>, ) -> Self
Replaces exact raw-byte torrent paths to exclude.
Sourcepub fn build(self) -> Result<ManifestOptions>
pub fn build(self) -> Result<ManifestOptions>
Compiles patterns and validates the configuration.
§Errors
Returns a metainfo error for an invalid root name or glob pattern.
Trait Implementations§
Source§impl Clone for ManifestOptionsBuilder
impl Clone for ManifestOptionsBuilder
Source§fn clone(&self) -> ManifestOptionsBuilder
fn clone(&self) -> ManifestOptionsBuilder
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 ManifestOptionsBuilder
impl Debug for ManifestOptionsBuilder
Source§impl Default for ManifestOptionsBuilder
impl Default for ManifestOptionsBuilder
Source§fn default() -> ManifestOptionsBuilder
fn default() -> ManifestOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ManifestOptionsBuilder
impl RefUnwindSafe for ManifestOptionsBuilder
impl Send for ManifestOptionsBuilder
impl Sync for ManifestOptionsBuilder
impl Unpin for ManifestOptionsBuilder
impl UnwindSafe for ManifestOptionsBuilder
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