pub struct GitWritePolicyEntry {
pub repo_path: PathBuf,
pub branch_patterns: Vec<String>,
}Expand description
One allowlisted (repo_path, branch_patterns) entry.
Fields§
§repo_path: PathBufAbsolute repo path as configured. Canonicalized at check time, not load time, so the check reflects the filesystem state at the moment of the write, not at daemon startup.
branch_patterns: Vec<String>Non-empty list of exact branch names or single-*-wildcard globs
(e.g. "main", "release-*", "*").
Trait Implementations§
Source§impl Clone for GitWritePolicyEntry
impl Clone for GitWritePolicyEntry
Source§fn clone(&self) -> GitWritePolicyEntry
fn clone(&self) -> GitWritePolicyEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GitWritePolicyEntry
impl RefUnwindSafe for GitWritePolicyEntry
impl Send for GitWritePolicyEntry
impl Sync for GitWritePolicyEntry
impl Unpin for GitWritePolicyEntry
impl UnsafeUnpin for GitWritePolicyEntry
impl UnwindSafe for GitWritePolicyEntry
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> 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