pub fn handle_create(&self) {
        match &self {
            Response::Created(s) => {
                let p = &s.payload;

                print_green("done\n");
                print_blue("https ");
                println!(" -> {:?}", p.http_url);
                print_blue("ws    ");
                println!(" -> {:?}", p.ws_url);
                print_italic("remote");
                println!(" -> {:?}", p.repo_url);
            }
            Response::Fail(e) => {
                let _ = err(Failure {
                    status: "Could not create project.\n".into(),
                    reason: format!("Reason: {}", e.reason),
                });
            }
            _ => unreachable!(),
        }
    }
/// Destructure and act upon the result
Destructure and act upon the result
Destructure and act upon the result
pub fn handle_create(&self) {
        match &self {
            Response::Created(s) => {
                let p = &s.payload;
                print_green("done\n");
                print_blue("https ");
                println!(" -> {:?}", p.http_url);
                print_blue("ws    ");
                println!(" -> {:?}", p.ws_url);
                print_italic("remote");
                println!(" -> {:?}", p.repo_url);
            }
            Response::Fail(e) => {
                let _ = err(Failure {
                    status: "Could not create project.\n".into(),
                    reason: format!("Reason: {}", e.reason),
                });
            }
            _ => unreachable!(),
        }
    }
pub fn handle_create ( & self ) { match & self { Response :: Created ( s ) => { let p = & s . payload ; print_green ( " \n " ) ; print_blue ( " " ) ; println ! ( " " p http_url ) ; print_blue ( " " ) ; println ! ( " " p ws_url ) ; print_italic ( " " ) ; println ! ( " " p repo_url ) ; } Response :: Fail ( e ) => { let _ = err ( Failure { status : " \n " . into ( ) , reason : format ! ( " " e reason ) , } ) ; } _ => unreachable ! ( ) , } }
Destructure and act upon the result
Destructure and act upon the result
&self