Skip to main content

encode_route

Function encode_route 

Source
pub fn encode_route(
    r: &Route,
    agents: &BTreeMap<String, AgentDecl>,
    hermes: bool,
) -> Value
Expand description

A route back in Hermes’s form: profile is the agent’s profile; our folder adds agent when the agent is not that profile’s own (Hermes folds agents into their profiles, so its export never does).