MCPcopy Create free account
hub / github.com/ForgeAILab/forge / parse

Method parse

crates/db/src/task_metadata.rs:15–19  ·  view source on GitHub ↗
(raw: Option<&str>)

Source from the content-addressed store, hash-verified

13
14impl TaskMetadata {
15 pub fn parse(raw: Option<&str>) -> Result<Self, serde_json::Error> {
16 raw.map(serde_json::from_str)
17 .transpose()
18 .map(Option::unwrap_or_default)
19 }
20
21 pub fn to_json(&self) -> Option<String> {
22 if self.ordered_sequence_started.is_none() && self.extra.is_empty() {

Callers 15

mainFunction · 0.80
parse_executor_kindFunction · 0.80
parse_csvFunction · 0.80
parse_optionalFunction · 0.80
parse_executor_kindFunction · 0.80
parse_enumFunction · 0.80
migration_versionFunction · 0.80
readRecentTasksFunction · 0.80
safeParseConfigFunction · 0.80

Calls

no outgoing calls

Tested by 6

migration_versionFunction · 0.64
apiFunction · 0.64
apiFunction · 0.64
sentTerminalInputFunction · 0.64