Function decode_optional_hex
Source pub fn decode_optional_hex(
input: Option<&str>,
) -> Result<Option<Bytes>, CoreError>
Expand description
Decodes an optional hex-encoded string.
§Arguments
input - Optional hex-encoded string
§Returns
None if input is None or empty, otherwise the decoded Bytes or an error.