pub struct GitWriteSectionConfig {
pub program: Option<PathBuf>,
pub allowed: Vec<GitWriteEntryConfig>,
pub actors: BTreeMap<String, GitWriteActorConfig>,
pub repositories: BTreeMap<String, GitWriteRepositoryConfig>,
pub credential_resolver: Vec<String>,
pub contract_faults: bool,
pub fault: Option<String>,
}Expand description
[git_write] section — the closed repo/branch allowlist consulted by
khive-pack-git’s write verbs at the handler level (ADR-108 Amendment),
independent of Gate policy. Absent or empty allowed is the fail-closed
default: the write verbs report themselves unavailable rather than
defaulting open.
[[git_write.allowed]]
repo = "/abs/path/repo"
branches = ["feat/*", "fix/*"]Fields§
§program: Option<PathBuf>Absolute git executable override; absent preserves PATH resolution.
allowed: Vec<GitWriteEntryConfig>§actors: BTreeMap<String, GitWriteActorConfig>§repositories: BTreeMap<String, GitWriteRepositoryConfig>§credential_resolver: Vec<String>§contract_faults: bool§fault: Option<String>Implementations§
Source§impl GitWriteSectionConfig
impl GitWriteSectionConfig
pub fn git_program(&self) -> &Path
pub fn validate_dev_loop(&self) -> Result<(), ConfigError>
Trait Implementations§
Source§impl Clone for GitWriteSectionConfig
impl Clone for GitWriteSectionConfig
Source§impl Debug for GitWriteSectionConfig
impl Debug for GitWriteSectionConfig
Source§impl Default for GitWriteSectionConfig
impl Default for GitWriteSectionConfig
Source§impl<'de> Deserialize<'de> for GitWriteSectionConfig
impl<'de> Deserialize<'de> for GitWriteSectionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for GitWriteSectionConfig
impl Freeze for GitWriteSectionConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<GitWriteEntryConfig>: Freeze,
*const LeafNode<String, GitWriteActorConfig> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, GitWriteActorConfig)>>: Freeze,
*const LeafNode<String, GitWriteRepositoryConfig> is !null: Freeze,
PhantomData<Box<(String, GitWriteRepositoryConfig)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for GitWriteSectionConfig
impl RefUnwindSafe for GitWriteSectionConfig
impl Send for GitWriteSectionConfigwhere
RawVecInner: Send,
NodeRef<Owned, String, GitWriteActorConfig, LeafOrInternal>: Send,
BoxRaw<(String, GitWriteActorConfig)>: Send,
NodeRef<Owned, String, GitWriteRepositoryConfig, LeafOrInternal>: Send,
BoxRaw<(String, GitWriteRepositoryConfig)>: Send,
impl Sync for GitWriteSectionConfigwhere
RawVecInner: Sync,
NodeRef<Owned, String, GitWriteActorConfig, LeafOrInternal>: Sync,
BoxRaw<(String, GitWriteActorConfig)>: Sync,
NodeRef<Owned, String, GitWriteRepositoryConfig, LeafOrInternal>: Sync,
BoxRaw<(String, GitWriteRepositoryConfig)>: Sync,
impl Unpin for GitWriteSectionConfigwhere
*const u8 is !null: Unpin,
*const LeafNode<String, GitWriteActorConfig> is !null: Unpin,
Box<(String, GitWriteActorConfig)>: Unpin,
*const LeafNode<String, GitWriteRepositoryConfig> is !null: Unpin,
Box<(String, GitWriteRepositoryConfig)>: Unpin,
impl UnsafeUnpin for GitWriteSectionConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GitWriteEntryConfig>: UnsafeUnpin,
*const LeafNode<String, GitWriteActorConfig> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, GitWriteActorConfig)>>: UnsafeUnpin,
*const LeafNode<String, GitWriteRepositoryConfig> is !null: UnsafeUnpin,
PhantomData<Box<(String, GitWriteRepositoryConfig)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for GitWriteSectionConfigwhere
RawVecInner: UnwindSafe,
BTreeMap<String, GitWriteActorConfig>: UnwindSafe,
BTreeMap<String, GitWriteRepositoryConfig>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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