fn base64(mq: &ListMQEndpoint) -> String {
        let user = &mq.list_of_mq_endpoints[0].app_user;
        let pass = &mq.list_of_mq_endpoints[0].app_password;
        let basic_auth = "Basic ".to_string() + &encode(user.clone() + ":" + &pass);
        return basic_auth;
    }
//Allows authenticaton parameters to be met via encoding
//Imports user/pass values from json vector
Allows authenticaton parameters to be met via encoding
Imports user/pass values from json vector
Allows authenticaton parameters to be met via encoding Imports user / pass values from json vector
fn base64(mq: &ListMQEndpoint) -> String {
        let user = &mq.list_of_mq_endpoints[0].app_user;
        let pass = &mq.list_of_mq_endpoints[0].app_password;
        let basic_auth = "Basic ".to_string() + &encode(user.clone() + ":" + &pass);
        return basic_auth;
    }
fn base64 ( mq : & ListMQEndpoint ) -> String { let user = & mq . list_of_mq_endpoints [ 0 ] . app_user ; let pass = & mq . list_of_mq_endpoints [ 0 ] . app_password ; let basic_auth = " " . to_string ( ) + & encode ( user . clone ( ) + " " + & pass ) ; return basic_auth ; }
Allows authenticaton parameters to be met via encoding
Imports user/pass values from json vector
Allows authenticaton parameters to be met via encoding Imports user / pass values from json vector
mq
&ListMQEndpoint
mq
&ListMQEndpoint