fn map_to_api_key(client_id: Option<String>) -> Option<ApiKey> {
    client_id.map(|value| ApiKey {
        prefix: None,
        key: format!("Client-ID {value}", value = value),
    })
}
// Convert optional client_id into imgur_api compatible format.
Convert optional client_id into imgur_api compatible format.
Convert optional client_id into imgur_api compatible format .
fn map_to_api_key(client_id: Option<String>) -> Option<ApiKey> {
    client_id.map(|value| ApiKey {
        prefix: None,
        key: format!("Client-ID {value}", value = value),
    })
}
fn map_to_api_key ( client_id : Option < String > ) -> Option < ApiKey > { client_id . map ( | value | ApiKey { prefix : None , key : format ! ( " " value value ) , } ) }
Convert optional client_id into imgur_api compatible format.
Convert optional client_id into imgur_api compatible format .
client_id
Option<String>
client_id
Option<String>