#[non_exhaustive]pub enum ControlKind {
Label(Label),
CheckBox(CheckBox),
Line(Line),
Shape(Shape),
Table(Table),
Panel(Panel),
Picture(Picture),
Link(LinkLabel),
Bookmark(Bookmark),
Barcode(Barcode),
Chart(Chart),
}Expand description
The kinds of controls.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Label(Label)
Text: fixed, or from an expression.
CheckBox(CheckBox)
A check mark from a boolean expression, with optional text.
Line(Line)
A straight line across the control’s box.
Shape(Shape)
A rectangle or ellipse.
Table(Table)
A grid of cells, each a label.
Panel(Panel)
A container whose controls move together.
Picture(Picture)
A PNG or JPEG image.
Link(LinkLabel)
Text that opens an address when clicked in a PDF, a spreadsheet or a web page.
Bookmark(Bookmark)
An invisible entry in the document’s outline, at this control’s position.
Barcode(Barcode)
A barcode or QR Code.
Chart(Chart)
A chart of the rows in scope, or of a nested list.
Trait Implementations§
Source§impl Clone for ControlKind
impl Clone for ControlKind
Source§fn clone(&self) -> ControlKind
fn clone(&self) -> ControlKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlKind
impl Debug for ControlKind
Source§impl<'de> Deserialize<'de> for ControlKind
impl<'de> Deserialize<'de> for ControlKind
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
Source§impl PartialEq for ControlKind
impl PartialEq for ControlKind
Source§impl Serialize for ControlKind
impl Serialize for ControlKind
impl StructuralPartialEq for ControlKind
Auto Trait Implementations§
impl Freeze for ControlKind
impl RefUnwindSafe for ControlKind
impl Send for ControlKind
impl Sync for ControlKind
impl Unpin for ControlKind
impl UnsafeUnpin for ControlKind
impl UnwindSafe for ControlKind
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