Function casper_rust_wasm_sdk::helpers::parse_ttl

source ·
pub fn parse_ttl(value: &str) -> Result<TimeDiff, SdkError>
Expand description

Parses a TTL (time to live) string into a TimeDiff object.

§Arguments

  • value - The TTL string to parse.

§Returns

A Result containing the parsed TimeDiff or an error if parsing fails.