pub struct ConfigEntry {
pub scope: String,
pub origin: String,
pub key: String,
pub value: String,
}Expand description
One value of a multi-valued config key, in the order git read it.
Fields§
§scope: Stringsystem, global, local, worktree or command.
origin: Stringfile:<path> (or command line:), as git prints it.
key: StringThe key as git prints it: section and variable lowercased, the subsection (a URL) as written.
value: StringImplementations§
Source§impl ConfigEntry
impl ConfigEntry
Sourcepub fn is_machine_wide(&self) -> bool
pub fn is_machine_wide(&self) -> bool
Whether the user’s own configuration (not the repository’s) set it.
Trait Implementations§
Source§impl Clone for ConfigEntry
impl Clone for ConfigEntry
Source§impl Debug for ConfigEntry
impl Debug for ConfigEntry
impl Eq for ConfigEntry
Source§impl PartialEq for ConfigEntry
impl PartialEq for ConfigEntry
impl StructuralPartialEq for ConfigEntry
Auto Trait Implementations§
impl Forget for ConfigEntry
impl Freeze for ConfigEntry
impl Move for ConfigEntry
impl RefUnwindSafe for ConfigEntry
impl Send for ConfigEntry
impl Sync for ConfigEntry
impl Unpin for ConfigEntry
impl UnsafeUnpin for ConfigEntry
impl UnwindSafe for ConfigEntry
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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