parse_counter_value_from_string

Function parse_counter_value_from_string 

Source
pub fn parse_counter_value_from_string(value: Option<String>) -> Result<BigInt>
Expand description

Parses a counter value from PubAck value field.

When publishing to a stream with counters enabled, the PubAck response includes a value field containing the current counter value as a string.

§Arguments

  • value - Optional string value from PubAck

§Returns

A BigInt representing the counter value.