pub(crate) fn verbose(
    result: google_storage1::Result<(hyper::client::Response, google_storage1::Object)>,
) -> google_storage1::Result<(hyper::client::Response, google_storage1::Object)> {
    if log_enabled!(Level::Error) || log_enabled!(Level::Debug) {
        match &result {
            Err(e) => match e {
                google_storage1::Error::HttpError(_)
                | google_storage1::Error::MissingAPIKey
                | google_storage1::Error::MissingToken(_)
                | google_storage1::Error::Cancelled
                | google_storage1::Error::UploadSizeLimitExceeded(_, _)
                | google_storage1::Error::Failure(_)
                | google_storage1::Error::BadRequest(_)
                | google_storage1::Error::FieldClash(_)
                | google_storage1::Error::JsonDecodeError(_, _) => println!("Error: {}", e),
            },
            Ok(res) => println!("Success: {:?}", res),
        };
    }
    result
}
/// When logging level is error or debug, print the result of each
/// request to stdout
When logging level is error or debug, print the result of each
request to stdout
When logging level is error or debug print the result of each request to stdout
pub(crate) fn verbose(
    result: google_storage1::Result<(hyper::client::Response, google_storage1::Object)>,
) -> google_storage1::Result<(hyper::client::Response, google_storage1::Object)> {
    if log_enabled!(Level::Error) || log_enabled!(Level::Debug) {
        match &result {
            Err(e) => match e {
                google_storage1::Error::HttpError(_)
                | google_storage1::Error::MissingAPIKey
                | google_storage1::Error::MissingToken(_)
                | google_storage1::Error::Cancelled
                | google_storage1::Error::UploadSizeLimitExceeded(_, _)
                | google_storage1::Error::Failure(_)
                | google_storage1::Error::BadRequest(_)
                | google_storage1::Error::FieldClash(_)
                | google_storage1::Error::JsonDecodeError(_, _) => println!("Error: {}", e),
            },
            Ok(res) => println!("Success: {:?}", res),
        };
    }
    result
}
pub ( crate ) fn verbose ( result : google_storage1 :: Result < ( hyper :: client :: Response , google_storage1 :: Object ) > , ) -> google_storage1 :: Result < ( hyper :: client :: Response , google_storage1 :: Object ) > { if log_enabled ! ( Level Error ) || log_enabled ! ( Level Debug ) { match & result { Err ( e ) => match e { google_storage1 :: Error :: HttpError ( _ ) | google_storage1 :: Error :: MissingAPIKey | google_storage1 :: Error :: MissingToken ( _ ) | google_storage1 :: Error :: Cancelled | google_storage1 :: Error :: UploadSizeLimitExceeded ( _ , _ ) | google_storage1 :: Error :: Failure ( _ ) | google_storage1 :: Error :: BadRequest ( _ ) | google_storage1 :: Error :: FieldClash ( _ ) | google_storage1 :: Error :: JsonDecodeError ( _ , _ ) => println ! ( " " e ) , } , Ok ( res ) => println ! ( " " res ) , } ; } result }
When logging level is error or debug, print the result of each
request to stdout
When logging level is error or debug print the result of each request to stdout
result
google_storage1::Result<(hyper::client::Response, google_storage1::Object)>
result
google_storage1::Result<(hyper::client::Response, google_storage1::Object)>