pub struct AnnotatorConfig {
pub include_title: bool,
pub include_description: bool,
pub include_default: bool,
pub max_line_width: Option<usize>,
pub existing_comments: ExistingCommentBehavior,
}Expand description
Configuration for annotation behavior
Fields§
§include_title: boolInclude title in comments
include_description: boolInclude description in comments
include_default: boolInclude default value in comments
max_line_width: Option<usize>Maximum line width for wrapping descriptions (None = no wrap)
existing_comments: ExistingCommentBehaviorHow to handle fields that already have comments
Implementations§
Source§impl AnnotatorConfig
impl AnnotatorConfig
Sourcepub fn titles_only() -> Self
pub fn titles_only() -> Self
Create a config that only includes titles
Sourcepub fn descriptions_only() -> Self
pub fn descriptions_only() -> Self
Create a config that only includes descriptions
Trait Implementations§
Source§impl Clone for AnnotatorConfig
impl Clone for AnnotatorConfig
Source§fn clone(&self) -> AnnotatorConfig
fn clone(&self) -> AnnotatorConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotatorConfig
impl Debug for AnnotatorConfig
Auto Trait Implementations§
impl Freeze for AnnotatorConfig
impl RefUnwindSafe for AnnotatorConfig
impl Send for AnnotatorConfig
impl Sync for AnnotatorConfig
impl Unpin for AnnotatorConfig
impl UnwindSafe for AnnotatorConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)