pub struct Style {
pub ban_em_dash: bool,
pub ban_ai_attribution: bool,
pub terse: bool,
pub max_detail_chars: usize,
pub max_summary_chars: usize,
pub max_body_chars: usize,
pub max_issue_body_chars: usize,
pub max_title_chars: usize,
pub pr_comments: PrComments,
}Expand description
Everything the two gates need to know. Mirrors the [style] config block.
Fields§
§ban_em_dash: bool§ban_ai_attribution: bool§terse: boolEnforce the length budgets below. Off means model prose passes through at whatever length it arrived at.
max_detail_chars: usizeA finding’s explanatory detail, as shown in the PR thread.
max_summary_chars: usizeA one-line verdict or disposition summary.
max_body_chars: usizeA PR body.
max_issue_body_chars: usizeA filed issue’s body.
max_title_chars: usizeA finding title, issue title, or PR title.
pr_comments: PrCommentsHow much of its own working spar narrates into a pull request thread.
Implementations§
Source§impl Style
impl Style
Sourcepub fn permissive() -> Self
pub fn permissive() -> Self
Style rules only, no length budgets. Used for text spar composed itself and has already sized.
Trait Implementations§
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.