pub fn format_fetch_field_value(field_name: &str, value: String) -> Option<String> {
    if value.is_empty() {
        None
    } else {
        match field_name {
            MEMORY_KEY => {
                if value == "0" {
                    None
                } else {
                    Some(format_bytes(&value))
                }
            }
            _ => Some(value),
        }
    }
}
/// convert the field-value into the desired format.
/// Returns `None` if the string is empty, as empty values must not be included in embeds.
convert the field-value into the desired format.
Returns `None` if the string is empty, as empty values must not be included in embeds.
convert the field - value into the desired format . Returns ` None ` if the string is empty as empty values must not be included in embeds .
pub fn format_fetch_field_value(field_name: &str, value: String) -> Option<String> {
    if value.is_empty() {
        None
    } else {
        match field_name {
            MEMORY_KEY => {
                if value == "0" {
                    None
                } else {
                    Some(format_bytes(&value))
                }
            }
            _ => Some(value),
        }
    }
}
pub fn format_fetch_field_value ( field_name : & str , value : String ) -> Option < String > { if value . is_empty ( ) { None } else { match field_name { MEMORY_KEY => { if value == " " { None } else { Some ( format_bytes ( & value ) ) } } _ => Some ( value ) , } } }
convert the field-value into the desired format.
convert the field - value into the desired format .
field_name
&str
value
String
field_name
&str
value
String