pub struct Options<'a> {
pub required_trust: Trust,
pub ceiling_dirs: &'a [PathBuf],
pub match_ceiling_dir_or_error: bool,
}Expand description
Options to help guide the discovery of repositories, along with their options when instantiated.
Fields
required_trust: TrustWhen discovering a repository, assure it has at least this trust level or ignore it otherwise.
This defaults to Reduced as our default settings are geared towards avoiding abuse.
Set it to Full to only see repositories that are owned by the current user.
ceiling_dirs: &'a [PathBuf]When discovering a repository, ignore any repositories that are located in these directories or any of their parents.
match_ceiling_dir_or_error: boolIf true, and ceiling_dirs is not empty, we expect at least one ceiling directory to match or else there will be an error.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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