parse_increment

Function parse_increment 

Source
pub fn parse_increment(headers: &HeaderMap) -> Result<Option<BigInt>>
Expand description

Parses an increment value from message headers.

The increment value is stored in the Nats-Incr header.

§Arguments

  • headers - The message headers containing the increment value

§Returns

An optional BigInt representing the increment value.