aboutsummaryrefslogtreecommitdiff
path: root/src/deserialization/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/deserialization/mod.rs')
-rw-r--r--src/deserialization/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/deserialization/mod.rs b/src/deserialization/mod.rs
index fa25e4b..b86c2af 100644
--- a/src/deserialization/mod.rs
+++ b/src/deserialization/mod.rs
@@ -15,6 +15,7 @@ pub trait Deserialize: Sized
) -> Result<Self, Self::Error>;
}
+#[cfg_attr(test, ridicule::automock)]
pub trait Deserializer
{
fn de_tag<De: Deserialize>(
@@ -38,6 +39,8 @@ pub trait Deserializer
tag_name: &str,
) -> Result<Vec<De>, DeserializerError>;
+ fn de_list<De: Deserialize>(&mut self) -> Result<Vec<De>, DeserializerError>;
+
fn de_text(&mut self) -> Result<String, DeserializerError>;
fn skip_to_tag_start(&mut self, tag_name: &str) -> Result<(), DeserializerError>;