pub struct BranchModel {
pub remote: String,
pub protected_patterns: Vec<String>,
pub naming_pattern: String,
pub enforce_naming: bool,
pub allowed_targets: Option<Vec<String>>,
}Fields§
§remote: String§protected_patterns: Vec<String>§naming_pattern: String§enforce_naming: bool§allowed_targets: Option<Vec<String>>Implementations§
Source§impl BranchModel
impl BranchModel
pub fn from_config(config: &ResolvedConfig) -> Self
pub fn is_protected_pattern_configured(&self) -> bool
Trait Implementations§
Source§impl Clone for BranchModel
impl Clone for BranchModel
Source§fn clone(&self) -> BranchModel
fn clone(&self) -> BranchModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BranchModel
impl Debug for BranchModel
Auto Trait Implementations§
impl Freeze for BranchModel
impl RefUnwindSafe for BranchModel
impl Send for BranchModel
impl Sync for BranchModel
impl Unpin for BranchModel
impl UnsafeUnpin for BranchModel
impl UnwindSafe for BranchModel
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