mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-18 07:21:02 +00:00
Allow to define custom expectation message for type with #[serde(expecting = "...")]
Closes #1883
This commit is contained in:
@@ -35,6 +35,7 @@ pub const TRY_FROM: Symbol = Symbol("try_from");
|
||||
pub const UNTAGGED: Symbol = Symbol("untagged");
|
||||
pub const VARIANT_IDENTIFIER: Symbol = Symbol("variant_identifier");
|
||||
pub const WITH: Symbol = Symbol("with");
|
||||
pub const EXPECTING: Symbol = Symbol("expecting");
|
||||
|
||||
impl PartialEq<Symbol> for Ident {
|
||||
fn eq(&self, word: &Symbol) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user