pub enum Claim {
Extensions,
ExtensionsAnyCase,
Layout(fn(&str) -> bool),
Content,
}Expand description
How a handler decides that a path is its own. It is part of the spec, so
matches_path is derived from it and never a hidden second opinion.
Variants§
Extensions
The path ends with one of the spec’s extensions (case-sensitive).
ExtensionsAnyCase
As Claim::Extensions, ignoring ASCII case (IMG_0001.JPG).
Layout(fn(&str) -> bool)
By layout: the function decides from the whole path. extensions then
only names the member kinds such a layout holds.
Content
Every path; the bytes decide in extract_metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
Blanket Implementations§
impl<T> Allocation for T
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