mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-26 13:17:56 +00:00
Add doc string for format method
This commit is contained in:
@@ -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 {
|
||||
""
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user