You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reuse doc comments on the fields for the corresponding getters and setters. The comments won't be exactly in the style that getters should have and even worse for setters, but it may be better than nothing. My getters macro does this.
You could also support overriding the doc comment with a field-level attribute like #[getter(doc = "Gets the foo.")]#[setter(doc = "Sets the foo.")]
The text was updated successfully, but these errors were encountered:
The reason for emitting #[allow(missing_docs)] is for the case where the field has no doc comment and no #[getter(doc)] attribute. I guess you could synthesize something like Gets the `field_name` field of the `StructName`. instead.
Emit
#[allow(missing_docs)]
on the impl block.Reuse doc comments on the fields for the corresponding getters and setters. The comments won't be exactly in the style that getters should have and even worse for setters, but it may be better than nothing. My getters macro does this.
You could also support overriding the doc comment with a field-level attribute like
#[getter(doc = "Gets the foo.")]
#[setter(doc = "Sets the foo.")]
The text was updated successfully, but these errors were encountered: