Struct mdbook_files::Files

source ·
pub struct Files {
Show 17 fields pub path: Utf8PathBuf, pub files: Vec<String>, pub default_file: Option<Utf8PathBuf>, pub ignore_case_insensitive: bool, pub same_file_system: bool, pub types: Vec<String>, pub hidden: bool, pub follow_links: bool, pub dot_ignore: bool, pub git_global: bool, pub git_exclude: bool, pub git_ignore: bool, pub require_git: bool, pub git_ignore_parents: bool, pub max_depth: Option<usize>, pub max_filesize: Option<u64>, pub height: Option<String>,
}
Expand description

Configuration for an invocation of files

Fields§

§path: Utf8PathBuf

Path to files

§files: Vec<String>

Add a glob to the set of overrides.

Globs provided here have precisely the same semantics as a single line in a gitignore file, where the meaning of ! is inverted: namely, ! at the beginning of a glob will ignore a file. Without !, all matches of the glob provided are treated as whitelist matches.

§default_file: Option<Utf8PathBuf>

When specified, path to the file that is opened by default.

§ignore_case_insensitive: bool

Process ignores case insensitively

§same_file_system: bool

Do not cross file system boundaries.

When this option is enabled, directory traversal will not descend into directories that are on a different file system from the root path.

§types: Vec<String>

Select the file type given by name.

§hidden: bool

Enables ignoring hidden files.

§follow_links: bool

Whether to follow symbolic links or not.

§dot_ignore: bool

Enables reading .ignore files.

.ignore files have the same semantics as gitignore files and are supported by search tools such as ripgrep and The Silver Searcher.

§git_global: bool

Enables reading a global gitignore file, whose path is specified in git’s core.excludesFile config option.

§git_exclude: bool

Enables reading .git/info/exclude files.

§git_ignore: bool

Enables reading .gitignore files.

§require_git: bool

Whether a git repository is required to apply git-related ignore rules (global rules, .gitignore and local exclude rules).

§git_ignore_parents: bool

Enables reading ignore files from parent directories.

§max_depth: Option<usize>

The maximum depth to recurse.

§max_filesize: Option<u64>

Whether to ignore files above the specified limit.

§height: Option<String>

Trait Implementations§

source§

impl Debug for Files

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Files

source§

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 RefUnwindSafe for Files

§

impl Send for Files

§

impl Sync for Files

§

impl Unpin for Files

§

impl UnwindSafe for Files

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,