Skip to main content

encode_flag

Function encode_flag 

Source
pub fn encode_flag(record: &FlagV1) -> Result<Value, StoreError>
Expand description

Encode a validated flag in the version-one JSON envelope.

ยงErrors Returns StoreError::Invalid for invalid reason, identity, ref, or sequence.