fn known_attributes(input: HashMap<String, String>) -> HashMap<String, String> {
        let mut output = HashMap::new();
        for (key, value) in input {
            match key.as_str() {
                "instance-id" => {
                    output.insert("IBMCLOUD_INSTANCE_ID".to_string(), value);
                }
                "local-hostname" => {
                    output.insert("IBMCLOUD_LOCAL_HOSTNAME".to_string(), value);
                }
                _ => {}
            };
        }
        output
    }
/// Extract supported metadata values and convert to Afterburn attributes.
///
/// The `AFTERBURN_` prefix is added later on, so it is not part of the
/// key-labels here.
Extract supported metadata values and convert to Afterburn attributes.
The `AFTERBURN_` prefix is added later on, so it is not part of the
key-labels here.
Extract supported metadata values and convert to Afterburn attributes . The ` AFTERBURN_ ` prefix is added later on so it is not part of the key - labels here .
fn known_attributes(input: HashMap<String, String>) -> HashMap<String, String> {
        let mut output = HashMap::new();
        for (key, value) in input {
            match key.as_str() {
                "instance-id" => {
                    output.insert("IBMCLOUD_INSTANCE_ID".to_string(), value);
                }
                "local-hostname" => {
                    output.insert("IBMCLOUD_LOCAL_HOSTNAME".to_string(), value);
                }
                _ => {}
            };
        }
        output
    }
fn known_attributes ( input : HashMap < String , String > ) -> HashMap < String , String > { let mut output = HashMap :: new ( ) ; for ( key , value ) in input { match key . as_str ( ) { " " => { output . insert ( " " . to_string ( ) , value ) ; } " " => { output . insert ( " " . to_string ( ) , value ) ; } _ => { } } ; } output }
Extract supported metadata values and convert to Afterburn attributes.
Extract supported metadata values and convert to Afterburn attributes .
input
HashMap<String, String>