#[non_exhaustive]pub enum TargetFormat {
Zpl,
Epl,
Tspl,
Dpl,
Xml,
Json,
Pdf,
Png,
Bmp,
Gif,
Jpeg,
}Expand description
The format to convert into.
There is no TargetFormat::Url: a URL is a fetch instruction, not an output format.
There is no Jpg either – that spelling is source-side only.
The printer languages round-trip: Epl, Tspl and Dpl are targets as well as
sources, as of contract 1.1.0.
Marked #[non_exhaustive] on purpose. This set has already grown once – the three
printer languages became targets when the printer-language writers shipped – and
without it every such addition is a breaking change for any downstream match.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Zpl
Zebra Programming Language.
Epl
Eltron Programming Language. Can inline raw binary (GW); prefer
ConversionResult::bytes over text().
Tspl
TSC Printer Language. Can inline raw binary (BITMAP); prefer
ConversionResult::bytes over text().
Dpl
Datamax Programming Language.
Xml
The LabelZoom label model, as XML.
Json
The LabelZoom label model, as JSON.
A PDF document.
Png
A PNG image.
Bmp
A BMP image.
Gif
A GIF image.
Jpeg
A JPEG image.
Implementations§
Source§impl TargetFormat
impl TargetFormat
Sourcepub const ALL: &'static [TargetFormat]
pub const ALL: &'static [TargetFormat]
Every accepted target, in the contract’s order.
Sourcepub fn wire_token(self) -> &'static str
pub fn wire_token(self) -> &'static str
The path segment for this target. Targets need no normalization.
Trait Implementations§
Source§impl Clone for TargetFormat
impl Clone for TargetFormat
Source§fn clone(&self) -> TargetFormat
fn clone(&self) -> TargetFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more