pub struct TesseraConfig {
pub include_paths: Vec<String>,
pub exclude_paths: Vec<String>,
pub ignore_names: Vec<String>,
}Fields§
§include_paths: Vec<String>Only index paths with one of these relative path prefixes. Empty means all.
exclude_paths: Vec<String>Skip paths with one of these relative path prefixes.
ignore_names: Vec<String>Extra directory or file names to skip during traversal.
Implementations§
Source§impl TesseraConfig
impl TesseraConfig
pub fn load(root: &Path) -> Self
pub fn parse_lossy(content: &str) -> Self
pub fn includes_path(&self, rel_path: &str) -> bool
pub fn excludes_path(&self, rel_path: &str) -> bool
pub fn ignores_name(&self, name: &str) -> bool
Trait Implementations§
Source§impl Clone for TesseraConfig
impl Clone for TesseraConfig
Source§fn clone(&self) -> TesseraConfig
fn clone(&self) -> TesseraConfig
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 moreSource§impl Debug for TesseraConfig
impl Debug for TesseraConfig
Source§impl Default for TesseraConfig
impl Default for TesseraConfig
Source§fn default() -> TesseraConfig
fn default() -> TesseraConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TesseraConfig
impl<'de> Deserialize<'de> for TesseraConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TesseraConfig
impl RefUnwindSafe for TesseraConfig
impl Send for TesseraConfig
impl Sync for TesseraConfig
impl Unpin for TesseraConfig
impl UnsafeUnpin for TesseraConfig
impl UnwindSafe for TesseraConfig
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