pub struct SourceOptions {
pub cache_root: PathBuf,
pub offline: bool,
pub git_token: Option<GitToken>,
pub allowed_protocols: String,
}Expand description
How git sources are cached, fetched and authenticated.
Fields§
§cache_root: PathBufBase directory holding one sub-directory per cached git source.
offline: boolNever touch the network: reuse the cache, and fail if it is missing.
git_token: Option<GitToken>Token injected into https fetches of its host only.
allowed_protocols: StringGIT_ALLOW_PROTOCOL value set on every git call (colon-separated).
Trait Implementations§
Source§impl Clone for SourceOptions
impl Clone for SourceOptions
Source§impl Debug for SourceOptions
impl Debug for SourceOptions
Auto Trait Implementations§
impl Freeze for SourceOptions
impl RefUnwindSafe for SourceOptions
impl Send for SourceOptions
impl Sync for SourceOptions
impl Unpin for SourceOptions
impl UnsafeUnpin for SourceOptions
impl UnwindSafe for SourceOptions
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more