MCPcopy Create free account
hub / github.com/cosdata/cosdata / serialize

Method serialize

src/metadata/mod.rs:102–110  ·  view source on GitHub ↗
(&self, serializer: S)

Source from the content-addressed store, hash-verified

100
101impl Serialize for FieldValue {
102 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
103 where
104 S: serde::Serializer,
105 {
106 match self {
107 Self::Int(i) => serializer.serialize_i32(*i),
108 Self::String(s) => serializer.serialize_str(s),
109 }
110 }
111}
112
113impl<'de> Deserialize<'de> for FieldValue {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected