Function serde_with::rust::unwrap_or_skip::serialize
source · [−]pub fn serialize<T, S>(
option: &Option<T>,
serializer: S
) -> Result<S::Ok, S::Error> where
T: Serialize,
S: Serializer,
Expand description
Serialize value if Some(T), unit struct if None