pub struct Barcode {
pub symbology: Symbology,
pub text: String,
pub expression: Option<String>,
pub show_text: bool,
}Expand description
A barcode.
Fields§
§symbology: SymbologyThe format.
text: StringFixed content.
expression: Option<String>An expression giving the content, such as [Sku]; it wins over text.
show_text: boolPrints the content under a linear code.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Barcode
impl<'de> Deserialize<'de> for Barcode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Barcode
Auto Trait Implementations§
impl Freeze for Barcode
impl RefUnwindSafe for Barcode
impl Send for Barcode
impl Sync for Barcode
impl Unpin for Barcode
impl UnsafeUnpin for Barcode
impl UnwindSafe for Barcode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more