Function extract_string_checked

Source
pub fn extract_string_checked<T: Serialize, P: IqPath>(
    source: &T,
    path: P,
    format: IqFormat,
) -> Result<Option<String>, IqError>
Expand description

Extract a string from a structure at a given path, with a given format.

If the path is not found, or empty, return None.

May theorethically return an error (eg if structure serialization fails), but most users should probably use one of the simpler other functions.