wip: book documentation

This commit is contained in:
Jonathan Kelley committed 2021-10-16 17:04:28 -04:00
1 parent 7dedad4c26
commit 16dbf4a6f8
87 files changed
+997 -319

No files matched your search

+12 -1
View File
@@ -262,7 +262,7 @@ mod field_info {
pub setter: SetterSettings,
}
#[derive(Debug, Default, Clone)]
#[derive(Debug, Clone)]
pub struct SetterSettings {
pub doc: Option<syn::Expr>,
pub skip: bool,
@@ -270,6 +270,17 @@ mod field_info {
pub strip_option: bool,
}
impl Default for SetterSettings {
fn default() -> Self {
Self {
doc: Default::default(),
skip: false,
auto_into: false,
strip_option: false,
}
}
}
impl FieldBuilderAttr {
pub fn with(mut self, attrs: &[syn::Attribute]) -> Result<Self, Error> {
let mut skip_tokens = None;