Lines Matching defs:StructForm
285 deserialize_struct(params, fields, &cont.attrs, StructForm::Struct)
897 enum StructForm<'a> {
913 form: StructForm,
932 StructForm::Struct => construct,
933 StructForm::ExternallyTagged(variant_ident)
934 | StructForm::InternallyTagged(variant_ident, _)
935 | StructForm::Untagged(variant_ident, _) => quote!(#construct::#variant_ident),
938 StructForm::Struct => format!("struct {}", params.type_name()),
939 StructForm::ExternallyTagged(variant_ident)
940 | StructForm::InternallyTagged(variant_ident, _)
941 | StructForm::Untagged(variant_ident, _) => {
966 StructForm::Untagged(..) => None,
993 StructForm::ExternallyTagged(..) if cattrs.has_flatten() => Some(quote! {
1028 StructForm::Struct if cattrs.has_flatten() => quote! {
1031 StructForm::Struct => {
1037 StructForm::ExternallyTagged(_) if cattrs.has_flatten() => quote! {
1040 StructForm::ExternallyTagged(_) => quote! {
1043 StructForm::InternallyTagged(_, deserializer) => quote! {
1046 StructForm::Untagged(_, deserializer) => quote! {
1819 StructForm::ExternallyTagged(variant_ident),
1862 StructForm::InternallyTagged(variant_ident, deserializer),
1918 StructForm::Untagged(variant_ident, deserializer),