pub struct ContentValidator { /* private fields */ }Expand description
Validates file content structure
Implementations§
Source§impl ContentValidator
impl ContentValidator
Sourcepub fn min_length(self, min: usize) -> Self
pub fn min_length(self, min: usize) -> Self
Set minimum content length
Sourcepub fn max_length(self, max: usize) -> Self
pub fn max_length(self, max: usize) -> Self
Set maximum content length
Sourcepub fn require_heading(self) -> Self
pub fn require_heading(self) -> Self
Require at least one heading
Trait Implementations§
Source§impl Clone for ContentValidator
impl Clone for ContentValidator
Source§fn clone(&self) -> ContentValidator
fn clone(&self) -> ContentValidator
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 ContentValidator
impl Debug for ContentValidator
Source§impl Default for ContentValidator
impl Default for ContentValidator
Auto Trait Implementations§
impl Freeze for ContentValidator
impl RefUnwindSafe for ContentValidator
impl Send for ContentValidator
impl Sync for ContentValidator
impl Unpin for ContentValidator
impl UnwindSafe for ContentValidator
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