MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / DurationProxy

Class DurationProxy

cel/src/ser.rs:90–90  ·  view source on GitHub ↗

chrono::Duration's Serialize impl isn't stable yet and relies on private fields, so attempt to mimic serde's default impl for std Duration.

Source from the content-addressed store, hash-verified

88 // private fields, so attempt to mimic serde's default impl for std
89 // Duration.
90 struct DurationProxy(chrono::Duration);
91 impl Serialize for DurationProxy {
92 fn serialize<S: ser::Serializer>(
93 &self,

Callers 1

serializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected