casper_rust_wasm_sdk::helpersFunction parse_ttl
source pub fn parse_ttl(value: &str) -> Result<TimeDiff, Box<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.