Skip to main content

stamp

Function stamp 

Source
pub fn stamp(block_id: &str, line: &[u8]) -> Option<Vec<u8>>
Expand description

The line to store for user record line (one NDJSON line, a trailing newline kept) of block_id: with its sender added when a device sent it, else None and the line is stored as it is.