/// Get an image of a QR code that encodes this string.
Get an image of a QR code that encodes this string.
Get an image of a QR code that encodes this string .
pub fn string_to_qrcode(data: String) -> QrEncodeResult {
    let code = QrCode::new(data);
    let to_render;
    match code {
        Ok(res) => {to_render = res;},
        Err(error) => {return Err(QrEncodeError::EncodingLibError(error));}
    }
    let img = qrcode_to_image(to_render);
    Ok(img)
}
pub fn string_to_qrcode ( data : String ) -> QrEncodeResult { let code = QrCode :: new ( data ) ; let to_render ; match code { Ok ( res ) => { to_render = res ; } , Err ( error ) => { return Err ( QrEncodeError :: EncodingLibError ( error ) ) ; } } let img = qrcode_to_image ( to_render ) ; Ok ( img ) }
Get an image of a QR code that encodes this string.
Get an image of a QR code that encodes this string .
data
String