Skip to main content

serialize_exposed

Function serialize_exposed 

Source
pub fn serialize_exposed<T, S>(
    value: &T,
    serializer: S,
) -> Result<S::Ok, S::Error>
where T: ExposeSecret<str>, S: Serializer,
Expand description

For #[serde(serialize_with)] on a field whose real value must be sent.