Add doc string for format method

This commit is contained in:
Hugo Duncan
2015-05-07 17:48:15 -04:00
parent 53e6e29571
commit ec483fc07d
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -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 {
""
}
+4
View File
@@ -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 {
""
}