Struct linkcheck::validation::Options [−][src]
pub struct Options { /* fields omitted */ }
Expand description
Options to be used with resolve_link()
.
Implementations
The name used by Options::default_file()
.
pub fn default_alternate_extensions(
) -> impl IntoIterator<Item = (OsString, impl IntoIterator<Item = OsString>)>
pub fn default_alternate_extensions(
) -> impl IntoIterator<Item = (OsString, impl IntoIterator<Item = OsString>)>
A mapping of possible alternate extensions to try when checking a filesystem link.
Get the root directory, if one was provided.
Set the Options::root_directory()
, automatically converting to its
canonical form with dunce::canonicalize()
.
The default file name to use when a directory is linked to.
Set the Options::default_file()
.
Get the map of alternate extensions to use when checking.
By default we only map *.md
to *.html
(Options::default_alternate_extensions()
).
pub fn set_alternate_extensions<S, I, V>(self, alternates: I) -> Self where
I: IntoIterator<Item = (S, V)>,
S: Into<OsString>,
V: IntoIterator<Item = S>,
pub fn set_alternate_extensions<S, I, V>(self, alternates: I) -> Self where
I: IntoIterator<Item = (S, V)>,
S: Into<OsString>,
V: IntoIterator<Item = S>,
Set the Options::alternate_extensions()
mapping.
Are links allowed to go outside of the Options::root_directory()
?
Trait Implementations
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 !RefUnwindSafe for Options
impl !UnwindSafe for Options
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more