Skip to main content

of

Function of 

Source
pub fn of(view: &Value, channel: &str) -> Value
Expand description

Counts one actor’s standing out of a view body.

view is a /api/view response as JSON, already narrowed to what the caller may read. channel is the name an actor signs as.

An actor with no keys, changes, reviews or checks is not an error: the answer is a profile with zeroes and known: false, because “I have never heard of them” and “they have done nothing here” are different sentences and a caller deciding whether to trust a reviewer needs to be told which one it got.