pub struct StyleCfg {
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,
}Fields§
§ban_em_dash: bool§ban_ai_attribution: bool§terse: bool§max_detail_chars: usize§max_summary_chars: usize§max_body_chars: usize§max_issue_body_chars: usizeA filed issue’s body. Far larger than a PR comment’s on purpose: a comment is read with the diff in front of you, an issue is picked up cold months later by somebody who needs the whole story.
max_title_chars: usize§pr_comments: PrCommentsImplementations§
Trait Implementations§
Source§impl Default for StyleCfg
impl Default for StyleCfg
Source§fn default() -> Self
fn default() -> Self
Taken from Style, which is where the budgets are decided, rather than
written out again here.
They were written out again here, and they drifted. The functions
supplying them to serde were still named d90, d200, d320, d900
and d4000 while returning 140, 2000, 6000, 8000 and 20000, and the
config spar init generated offered the old numbers as though they
were current. Uncommenting one of those lines to see what it did cut
every comment spar posts to a fifth of its length.
Source§impl<'de> Deserialize<'de> for StyleCfg
impl<'de> Deserialize<'de> for StyleCfg
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 StyleCfg
impl RefUnwindSafe for StyleCfg
impl Send for StyleCfg
impl Sync for StyleCfg
impl Unpin for StyleCfg
impl UnsafeUnpin for StyleCfg
impl UnwindSafe for StyleCfg
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