pub enum ExistingCommentBehavior {
Skip,
Prepend,
Append,
Replace,
}Expand description
How to handle fields that already have comments
Variants§
Skip
Skip annotating fields that already have comments
Prepend
Add annotation before existing comment
Append
Add annotation after existing comment
Replace
Replace existing comment with annotation
Trait Implementations§
Source§impl Clone for ExistingCommentBehavior
impl Clone for ExistingCommentBehavior
Source§fn clone(&self) -> ExistingCommentBehavior
fn clone(&self) -> ExistingCommentBehavior
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 ExistingCommentBehavior
impl Debug for ExistingCommentBehavior
Source§impl Default for ExistingCommentBehavior
impl Default for ExistingCommentBehavior
Source§fn default() -> ExistingCommentBehavior
fn default() -> ExistingCommentBehavior
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExistingCommentBehavior
impl PartialEq for ExistingCommentBehavior
impl Copy for ExistingCommentBehavior
impl Eq for ExistingCommentBehavior
impl StructuralPartialEq for ExistingCommentBehavior
Auto Trait Implementations§
impl Freeze for ExistingCommentBehavior
impl RefUnwindSafe for ExistingCommentBehavior
impl Send for ExistingCommentBehavior
impl Sync for ExistingCommentBehavior
impl Unpin for ExistingCommentBehavior
impl UnwindSafe for ExistingCommentBehavior
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)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.