Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
use crate::{array, ffi, hash};
/// Perl [`Value`](crate::Value) deserializer.
-pub struct Deserializer {
+struct Deserializer {
input: Value,
option_allowed: bool,
}
}
}
- pub fn from_some_value(input: Value) -> Self {
- Deserializer {
- input,
- option_allowed: false,
- }
- }
-
fn deref_current(&mut self) -> Result<(), Error> {
while let Value::Reference(_) = &self.input {
self.input = self.input.dereference().ok_or_else(|| {
use crate::{array, hash};
/// Perl [`Value`](crate::Value) serializer.
-pub struct Serializer;
+struct Serializer;
/// Serialize data into a perl [`Value`](crate::Value).
///
}
/// Serde map & struct serialization helper.
-pub struct SerHash {
+struct SerHash {
hash: hash::Hash,
key: Option<Value>,
}
/// Serde sequence serialization helper.
-pub struct SerArray {
+struct SerArray {
array: array::Array,
}
/// Serde variant serialization helper.
-pub struct SerVariant<T> {
+struct SerVariant<T> {
hash: hash::Hash,
inner: T,
}