mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-20 20:51:04 +00:00
Add doc string for format method
This commit is contained in:
@@ -114,6 +114,11 @@ pub trait Deserializer {
|
|||||||
self.visit(visitor)
|
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 {
|
fn format() -> &'static str {
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,6 +180,10 @@ pub trait Serializer {
|
|||||||
where K: Serialize,
|
where K: Serialize,
|
||||||
V: 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 {
|
fn format() -> &'static str {
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user