mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
8 lines
203 B
Rust
8 lines
203 B
Rust
pub fn display_serialize<T, S>(value: &T, serializer: S) -> Result<S::Ok, S::Error>
|
|
where
|
|
T: std::fmt::Display,
|
|
S: serde::ser::Serializer,
|
|
{
|
|
serializer.serialize_str(&format!("{}", value))
|
|
}
|