Skip to main content

decode_str_with_options

Function decode_str_with_options 

Source
pub fn decode_str_with_options(encoded: &str, check_ttl: bool) -> Result<String>
Expand description

将 DX 编码的字符串解码为字符串,可选择是否检查 TTL

§参数

  • encoded - DX 编码的字符串
  • check_ttl - 是否检查 TTL 过期

§返回值

解码后的字符串