pub fn generate_qr_string_from_text(
text: &str,
options: &QrOptions,
) -> QrResult<String>Expand description
Generate a QR code from plain text and return the visual representation as a string
This function creates a QR code from plain text (like URLs) without serialization and returns it as a string that can be printed to the console.
§Arguments
text- The plain text to encode in the QR codeoptions- Display options for the QR code
§Returns
QrResult<String>- The QR code as a printable string
§Examples
use zoe_app_primitives::qr::{generate_qr_string_from_text, QrOptions};
let url = "https://signal.org/#eu_EQIlw-O0NmftmVoqUlKZiwlqcTMG0ybgChE8XQtjn2WSHw";
let options = QrOptions::new("📱 SIGNAL LINKING").with_footer("Scan with Signal app");
let qr_string = generate_qr_string_from_text(url, &options).unwrap();
println!("{}", qr_string);