Lines Matching refs:expecting

412     let expecting = format!("unit struct {}", params.type_name());
413 let expecting = cattrs.expecting().unwrap_or(&expecting);
425 fn expecting(&self, __formatter: &mut _serde::__private::Formatter) -> _serde::__private::fmt::Result {
426 _serde::__private::Formatter::write_str(__formatter, #expecting)
493 let expecting = match form {
499 let expecting = cattrs.expecting().unwrap_or(&expecting);
511 &type_path, params, fields, false, cattrs, expecting,
557 fn expecting(&self, __formatter: &mut _serde::__private::Formatter) -> _serde::__private::fmt::Result {
558 _serde::__private::Formatter::write_str(__formatter, #expecting)
594 let expecting = format!("tuple struct {}", params.type_name());
595 let expecting = cattrs.expecting().unwrap_or(&expecting);
617 let visit_seq = Stmts(deserialize_seq_in_place(params, fields, cattrs, expecting));
653 fn expecting(&self, __formatter: &mut _serde::__private::Formatter) -> _serde::__private::fmt::Result {
654 _serde::__private::Formatter::write_str(__formatter, #expecting)
678 expecting: &str,
686 let expecting = if deserialized_count == 1 {
687 format!("{} with 1 element", expecting)
689 format!("{} with {} elements", expecting, deserialized_count)
691 let expecting = cattrs.expecting().unwrap_or(&expecting);
719 let value_if_none = expr_is_missing_seq(None, index_in_seq, field, cattrs, expecting);
776 expecting: &str,
782 let expecting = if deserialized_count == 1 {
783 format!("{} with 1 element", expecting)
785 format!("{} with {} elements", expecting, deserialized_count)
787 let expecting = cattrs.expecting().unwrap_or(&expecting);
799 let value_if_none = expr_is_missing_seq(Some(quote!(self.place.#member = )), index_in_seq, field, cattrs, expecting);
937 let expecting = match form {
945 let expecting = cattrs.expecting().unwrap_or(&expecting);
976 &type_path, params, fields, true, cattrs, expecting,
1063 fn expecting(&self, __formatter: &mut _serde::__private::Formatter) -> _serde::__private::fmt::Result {
1064 _serde::__private::Formatter::write_str(__formatter, #expecting)
1103 let expecting = format!("struct {}", params.type_name());
1104 let expecting = cattrs.expecting().unwrap_or(&expecting);
1126 let visit_seq = Stmts(deserialize_seq_in_place(params, fields, cattrs, expecting));
1149 fn expecting(&self, __formatter: &mut _serde::__private::Formatter) -> _serde::__private::fmt::Result {
1150 _serde::__private::Formatter::write_str(__formatter, #expecting)
1270 let expecting = format!("enum {}", params.type_name());
1271 let expecting = cattrs.expecting().unwrap_or(&expecting);
1326 fn expecting(&self, __formatter: &mut _serde::__private::Formatter) -> _serde::__private::fmt::Result {
1327 _serde::__private::Formatter::write_str(__formatter, #expecting)
1380 let expecting = format!("internally tagged enum {}", params.type_name());
1381 let expecting = cattrs.expecting().unwrap_or(&expecting);
1390 _serde::__private::de::TaggedContentVisitor::<__Field>::new(#tag, #expecting))?;
1435 let expecting = format!("adjacently tagged enum {}", rust_name);
1436 let expecting = cattrs.expecting().unwrap_or(&expecting);
1606 fn expecting(&self, __formatter: &mut _serde::__private::Formatter) -> _serde::__private::fmt::Result {
1607 _serde::__private::Formatter::write_str(__formatter, #expecting)
1750 let fallthrough_msg = cattrs.expecting().unwrap_or(&fallthrough_msg);
2157 cattrs.expecting(),
2190 expecting: Option<&str>,
2204 let expecting = expecting.unwrap_or(if is_variant {
2421 fn expecting(&self, __formatter: &mut _serde::__private::Formatter) -> _serde::__private::fmt::Result {
2422 _serde::__private::Formatter::write_str(__formatter, #expecting)
2983 expecting: &str,
3002 return _serde::__private::Err(_serde::de::Error::invalid_length(#index, &#expecting))