#[non_exhaustive]pub struct RepoSettings {
pub merge_methods: Vec<MergeMethod>,
pub enable_ci: bool,
}Expand description
Repository settings a bootstrap enforces alongside the protection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.merge_methods: Vec<MergeMethod>The only merge methods to allow; the first is the default. Empty leaves the forge’s merge settings alone.
enable_ci: boolTurn the forge’s CI on for the repository. Off, the required check never reports and nothing can merge.
Implementations§
Source§impl RepoSettings
impl RepoSettings
Sourcepub fn merge_methods(methods: impl Into<Vec<MergeMethod>>) -> Self
pub fn merge_methods(methods: impl Into<Vec<MergeMethod>>) -> Self
Allow exactly methods (the first the default) and enable CI.
Trait Implementations§
Source§impl Clone for RepoSettings
impl Clone for RepoSettings
Source§impl Debug for RepoSettings
impl Debug for RepoSettings
Source§impl<'de> Deserialize<'de> for RepoSettings
impl<'de> Deserialize<'de> for RepoSettings
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
impl Eq for RepoSettings
Source§impl PartialEq for RepoSettings
impl PartialEq for RepoSettings
Source§impl Serialize for RepoSettings
impl Serialize for RepoSettings
impl StructuralPartialEq for RepoSettings
Auto Trait Implementations§
impl Freeze for RepoSettings
impl RefUnwindSafe for RepoSettings
impl Send for RepoSettings
impl Sync for RepoSettings
impl Unpin for RepoSettings
impl UnsafeUnpin for RepoSettings
impl UnwindSafe for RepoSettings
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