pub struct Options {
pub hash_kind: Kind,
pub extensions: Extensions,
}
Expand description
The options for use when writing an index.
Note that default options write either index V2 or V3 depending on the content of the entries.
Fields
hash_kind: Kind
The hash kind to use when writing the index file.
It is not always possible to infer the hash kind when reading an index, so this is required.
extensions: Extensions
Configures which extensions to write
Trait Implementations
impl Copy for Options
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more