MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / serialize

Method serialize

crates/openshell-providers/src/profiles.rs:491–502  ·  view source on GitHub ↗
(&self, serializer: S)

Source from the content-addressed store, hash-verified

489
490impl Serialize for BinaryProfile {
491 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
492 where
493 S: Serializer,
494 {
495 if !self.harness {
496 return serializer.serialize_str(&self.path);
497 }
498 let mut state = serializer.serialize_struct("BinaryProfile", 2)?;
499 state.serialize_field("path", &self.path)?;
500 state.serialize_field("harness", &self.harness)?;
501 state.end()
502 }
503}
504
505impl<'de> Deserialize<'de> for BinaryProfile {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected