/third_party/rust/crates/serde/test_suite/tests/ui/with-variant/ |
D | skip_ser_newtype_field.stderr | 1 error: variant `Newtype` cannot have both #[serde(serialize_with)] and a field #0 marked with #[ser… 5 6 | | Newtype(#[serde(skip_serializing)] String),
|
D | skip_de_newtype_field.stderr | 1 error: variant `Newtype` cannot have both #[serde(deserialize_with)] and a field #0 marked with #[s… 5 6 | | Newtype(#[serde(skip_deserializing)] String),
|
D | skip_ser_newtype_field_if.stderr | 1 error: variant `Newtype` cannot have both #[serde(serialize_with)] and a field #0 marked with #[ser… 5 6 | | Newtype(#[serde(skip_serializing_if = "always")] String),
|
D | skip_ser_newtype_field_if.rs | 6 Newtype(#[serde(skip_serializing_if = "always")] String), enumerator
|
D | skip_de_newtype_field.rs | 6 Newtype(#[serde(skip_deserializing)] String), enumerator
|
D | skip_ser_newtype_field.rs | 6 Newtype(#[serde(skip_serializing)] String), enumerator
|
/third_party/rust/crates/serde/test_suite/tests/ |
D | test_gen.rs | 98 Newtype(#[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X), in test_gen() enumerator 124 struct Newtype(#[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X); in test_gen() struct 125 assert::<Newtype>(); in test_gen() 432 Newtype(X), in test_gen() enumerator 462 Newtype(X), in test_gen() enumerator 487 Newtype(X), in test_gen() enumerator 517 Newtype(X), in test_gen() enumerator 571 Newtype(&'static str), in test_gen() enumerator 672 Newtype( in test_gen() enumerator 863 Newtype(i32), enumerator
|
D | test_macros.rs | 441 Newtype(GenericNewTypeStruct<u32>), in test_untagged_newtype_struct() enumerator 446 &E::Newtype(GenericNewTypeStruct(5u32)), in test_untagged_newtype_struct() 461 Newtype(GenericNewTypeStruct<u32>), in test_adjacently_tagged_newtype_struct() enumerator 466 &E::Newtype(GenericNewTypeStruct(5u32)), in test_adjacently_tagged_newtype_struct() 685 struct Newtype(BTreeMap<String, String>); in test_internally_tagged_enum() struct 698 D(Newtype), in test_internally_tagged_enum() 767 &InternallyTagged::D(Newtype(BTreeMap::new())), in test_internally_tagged_enum() 1152 Newtype(T), in test_adjacently_tagged_enum() enumerator 1256 &AdjacentlyTagged::Newtype::<u8>(1), in test_adjacently_tagged_enum() 1275 &AdjacentlyTagged::Newtype::<u8>(1), in test_adjacently_tagged_enum() [all …]
|
D | test_ignored_any.rs | 14 Newtype(i32), enumerator 91 Target::Newtype(10), in test_deserialize_enum()
|
D | test_annotations.rs | 1169 Newtype(i32), enumerator 1240 &WithVariant::Newtype(123), in test_serialize_with_variant() 1290 &WithVariant::Newtype(123), in test_deserialize_with_variant() 2732 struct Newtype(bool); in test_expecting_message() struct 2752 assert_de_tokens_error::<Newtype>( in test_expecting_message() 2915 Newtype(HashMap<String, String>), enumerator 2924 data: Enum::Newtype(HashMap::from_iter([("key".into(), "value".into())])), in newtype() 3042 Newtype(NewtypeVariant), enumerator 3090 data: NewtypeWrapper(Enum::Newtype(NewtypeVariant { value: 23 })), in newtype()
|
/third_party/rust/crates/serde/test_suite/no_std/src/ |
D | main.rs | 29 struct Newtype(u8); struct 42 Newtype(u8), enumerator
|
/third_party/rust/crates/serde/serde_derive/src/ |
D | pretend.rs | 67 Data::Struct(Style::Struct | Style::Tuple | Style::Newtype, fields) => { in pretend_fields_used() 118 Style::Struct | Style::Tuple | Style::Newtype => { in pretend_fields_used_enum() 170 Style::Tuple | Style::Newtype => quote!(( #(#placeholders),* )), in pretend_variants_used()
|
D | ser.rs | 178 Data::Struct(Style::Newtype, fields) => { in serialize_body() 445 Style::Newtype | Style::Tuple => quote!((..)), in serialize_variant() 459 Style::Newtype => { in serialize_variant() 540 Style::Newtype => { in serialize_externally_tagged_variant() 616 Style::Newtype => { in serialize_internally_tagged_variant() 681 Style::Newtype => { in serialize_adjacently_tagged_variant() 721 Style::Newtype => vec![Member::Named(Ident::new("__field0", Span::call_site()))], in serialize_adjacently_tagged_variant() 787 Style::Newtype => { in serialize_untagged_variant() 1300 Style::Newtype if variant.fields[0].attrs.skip_serializing() => Style::Unit, in effective_style()
|
D | de.rs | 287 Data::Struct(Style::Tuple, fields) | Data::Struct(Style::Newtype, fields) => { in deserialize_body() 322 Data::Struct(Style::Tuple, fields) | Data::Struct(Style::Newtype, fields) => { in deserialize_in_place_body() 1479 Style::Newtype if variant.attrs.deserialize_with().is_none() => { in deserialize_adjacently_tagged_enum() 1803 Style::Newtype => deserialize_externally_tagged_newtype_variant( in deserialize_externally_tagged_variant() 1852 Style::Newtype => deserialize_untagged_newtype_variant( in deserialize_internally_tagged_variant() 1902 Style::Newtype => deserialize_untagged_newtype_variant( in deserialize_untagged_variant() 2093 } else if let Style::Newtype = last.style { in deserialize_custom_identifier() 2931 Style::Newtype => quote! { in unwrap_to_variant_closure() 3009 Style::Newtype if variant.fields[0].attrs.skip_deserializing() => Style::Unit, in effective_style()
|
/third_party/rust/crates/serde/serde_derive/src/internals/ |
D | check.rs | 128 Style::Newtype => { in check_flatten_field() 198 (Style::Newtype, Identifier::Field, false, _) => { in check_identifier() 345 Style::Unit | Style::Newtype | Style::Tuple => {} in check_internal_tag_field_name_conflict()
|
D | ast.rs | 54 Newtype, enumerator 186 Style::Newtype, in struct_from_ast()
|
/third_party/rust/crates/serde/serde/src/private/ |
D | de.rs | 249 Newtype(Box<Content<'de>>), enumerator 286 Content::Newtype(_) => Unexpected::NewtypeStruct, in unexpected() 484 Deserialize::deserialize(deserializer).map(|v| Content::Newtype(Box::new(v))) in visit_newtype_struct() 1146 Content::Newtype(v) => visitor.visit_newtype_struct(ContentDeserializer::new(*v)), in deserialize_any() 1356 Content::Newtype(v) => visitor.visit_newtype_struct(ContentDeserializer::new(*v)), in deserialize_newtype_struct() 1745 Content::Newtype(ref v) => { in deserialize_any() 1924 Content::Newtype(ref v) => { in deserialize_newtype_struct()
|
/third_party/rust/crates/nix/ |
D | CHANGELOG.md | 1406 - Changed `TimeVal` into an opaque Newtype
|