pub fn encode(symbology: Symbology, data: &str) -> Result<Pattern, String>
Encodes data, or says why it does not fit the format.
data