Struct quire::validate::Directory [−][src]
pub struct Directory { /* fields omitted */ }
Directory validator
Similar to Scalar
but also allows to force absolute or relative paths
Methods
impl Directory
[src]
impl Directory
pub fn new() -> Directory
[src]
pub fn new() -> Directory
pub fn optional(self) -> Directory
[src]
pub fn optional(self) -> Directory
pub fn default<P: AsRef<Path>>(self, value: P) -> Directory
[src]
pub fn default<P: AsRef<Path>>(self, value: P) -> Directory
pub fn absolute(self, value: bool) -> Directory
[src]
pub fn absolute(self, value: bool) -> Directory
Trait Implementations
impl Debug for Directory
[src]
impl Debug for Directory
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Validator for Directory
[src]
impl Validator for Directory