pub struct RepositoryRuleCommitMessagePatternParameters {
pub name: Option<String>,
pub negate: Option<bool>,
pub operator: Operator,
pub pattern: String,
}
Fields§
§name: Option<String>
How this rule will appear to users.
negate: Option<bool>
If true, the rule will fail if the pattern matches.
operator: Operator
The operator to use for matching.
pattern: String
The pattern to match with.
Implementations§
Source§impl RepositoryRuleCommitMessagePatternParameters
impl RepositoryRuleCommitMessagePatternParameters
pub fn new( operator: Operator, pattern: String, ) -> RepositoryRuleCommitMessagePatternParameters
Trait Implementations§
Source§impl Clone for RepositoryRuleCommitMessagePatternParameters
impl Clone for RepositoryRuleCommitMessagePatternParameters
Source§fn clone(&self) -> RepositoryRuleCommitMessagePatternParameters
fn clone(&self) -> RepositoryRuleCommitMessagePatternParameters
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 Default for RepositoryRuleCommitMessagePatternParameters
impl Default for RepositoryRuleCommitMessagePatternParameters
Source§fn default() -> RepositoryRuleCommitMessagePatternParameters
fn default() -> RepositoryRuleCommitMessagePatternParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryRuleCommitMessagePatternParameters
impl<'de> Deserialize<'de> for RepositoryRuleCommitMessagePatternParameters
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
Source§impl PartialEq for RepositoryRuleCommitMessagePatternParameters
impl PartialEq for RepositoryRuleCommitMessagePatternParameters
Source§fn eq(&self, other: &RepositoryRuleCommitMessagePatternParameters) -> bool
fn eq(&self, other: &RepositoryRuleCommitMessagePatternParameters) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RepositoryRuleCommitMessagePatternParameters
Auto Trait Implementations§
impl Freeze for RepositoryRuleCommitMessagePatternParameters
impl RefUnwindSafe for RepositoryRuleCommitMessagePatternParameters
impl Send for RepositoryRuleCommitMessagePatternParameters
impl Sync for RepositoryRuleCommitMessagePatternParameters
impl Unpin for RepositoryRuleCommitMessagePatternParameters
impl UnwindSafe for RepositoryRuleCommitMessagePatternParameters
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