Function o1_utils::serialization::ser::serialize
source · pub fn serialize<S>(
val: impl CanonicalSerialize,
serializer: S
) -> Result<S::Ok, S::Error>where
S: Serializer,
Expand description
You can use this to serialize an arkworks type with serde and the “serialize_with” attribute. See https://serde.rs/field-attrs.html