pub struct Rules {Show 15 fields
pub body_empty: Option<BodyEmpty>,
pub body_max_length: Option<BodyMaxLength>,
pub description_empty: Option<DescriptionEmpty>,
pub description_format: Option<DescriptionFormat>,
pub description_max_length: Option<DescriptionMaxLength>,
pub footers_empty: Option<FootersEmpty>,
pub scope: Option<Scope>,
pub scope_empty: Option<ScopeEmpty>,
pub scope_format: Option<ScopeFormat>,
pub scope_max_length: Option<ScopeMaxLength>,
pub subject_empty: Option<SubjectEmpty>,
pub type: Option<Type>,
pub type_empty: Option<TypeEmpty>,
pub type_format: Option<TypeFormat>,
pub type_max_length: Option<TypeMaxLength>,
}
Expand description
Rules represents the rules of commitlint. See: https://commitlint.js.org/reference/rules.html
Fields§
§body_empty: Option<BodyEmpty>
§body_max_length: Option<BodyMaxLength>
§description_empty: Option<DescriptionEmpty>
§description_format: Option<DescriptionFormat>
§description_max_length: Option<DescriptionMaxLength>
§scope: Option<Scope>
§scope_empty: Option<ScopeEmpty>
§scope_format: Option<ScopeFormat>
§scope_max_length: Option<ScopeMaxLength>
§subject_empty: Option<SubjectEmpty>
§type: Option<Type>
§type_empty: Option<TypeEmpty>
§type_format: Option<TypeFormat>
§type_max_length: Option<TypeMaxLength>
Implementations§
Trait Implementations§
Source§impl Default for Rules
Default implementation of Rules.
If no config files are specified, this will be used.
impl Default for Rules
Default implementation of Rules. If no config files are specified, this will be used.
Source§impl<'de> Deserialize<'de> for Rules
impl<'de> Deserialize<'de> for Rules
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 Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnwindSafe for Rules
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