Hide deserialization functions in story module

This commit is contained in:
Joakim Soderlund 2019-07-27 20:47:29 +00:00
parent dbebf22d42
commit 1d757327f1

View file

@ -152,7 +152,7 @@ pub struct Tag {
pub url: String, pub url: String,
} }
pub fn null_to_html<'de, D>(d: D) -> Result<String, D::Error> fn null_to_html<'de, D>(d: D) -> Result<String, D::Error>
where where
D: Deserializer<'de>, D: Deserializer<'de>,
{ {
@ -162,7 +162,7 @@ where
} }
} }
pub fn null_to_text<'de, D>(d: D) -> Result<String, D::Error> fn null_to_text<'de, D>(d: D) -> Result<String, D::Error>
where where
D: Deserializer<'de>, D: Deserializer<'de>,
{ {
@ -172,7 +172,7 @@ where
} }
} }
pub fn string_to_id<'de, D>(d: D) -> Result<i64, D::Error> fn string_to_id<'de, D>(d: D) -> Result<i64, D::Error>
where where
D: Deserializer<'de>, D: Deserializer<'de>,
{ {