mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-08-07 22:55:44 +00:00
committed by
Steven Fackler
parent
d4042872f5
commit
2fe9a860cd
@@ -1727,6 +1727,12 @@ pub trait SerializeStruct {
|
||||
where
|
||||
T: Serialize;
|
||||
|
||||
/// Indicate that a struct field has been skipped.
|
||||
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error> {
|
||||
let _ = key;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Finish serializing a struct.
|
||||
fn end(self) -> Result<Self::Ok, Self::Error>;
|
||||
}
|
||||
@@ -1772,6 +1778,12 @@ pub trait SerializeStructVariant {
|
||||
where
|
||||
T: Serialize;
|
||||
|
||||
/// Indicate that a struct variant field has been skipped.
|
||||
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error> {
|
||||
let _ = key;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Finish serializing a struct variant.
|
||||
fn end(self) -> Result<Self::Ok, Self::Error>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user