diff --git a/src/de/mod.rs b/src/de/mod.rs index 260cba90..fc2907a3 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -114,6 +114,11 @@ pub trait Deserializer { self.visit(visitor) } + /// Specify a format string for the deserializer. + /// + /// The deserializer format is used to determine which format + /// specific field attributes should be used with the + /// deserializer. fn format() -> &'static str { "" } diff --git a/src/ser/mod.rs b/src/ser/mod.rs index 86ae179f..e3a2b179 100644 --- a/src/ser/mod.rs +++ b/src/ser/mod.rs @@ -180,6 +180,10 @@ pub trait Serializer { where K: Serialize, V: Serialize; + /// Specify a format string for the serializer. + /// + /// The serializer format is used to determine which format + /// specific field attributes should be used with the serializer. fn format() -> &'static str { "" }