Enum operator::content::ContentIndex
source · [−]pub enum ContentIndex {
Resource(Route),
Directory(ContentIndexEntries),
}
Expand description
A hierarchial tree mapping out content in the registry. Does not actually contain content items, just their routes.
For example, given the following content directory:
content/
foo.txt
bar.html
bar/
plugh.md.hbs
baz/
quux.gif
The content index would be:
foo: /foo
bar: /bar
bar/:
plugh: /bar/plugh
baz/:
quux: /bar/baz/quux
Variants
Resource(Route)
Directory(ContentIndexEntries)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ContentIndex
impl Send for ContentIndex
impl Sync for ContentIndex
impl Unpin for ContentIndex
impl UnwindSafe for ContentIndex
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self