pub struct FormFieldSpec {
pub field_type: Name,
pub name: String,
pub rect: [f32; 4],
pub page_index: usize,
pub default_value: Option<String>,
pub flags: u32,
}Expand description
Specification for a new interactive form field.
Fields§
§field_type: NameThe PDF field type name (Tx, Btn, or Ch).
name: StringThe partial field name (/T).
rect: [f32; 4]Widget annotation rectangle [x1, y1, x2, y2] in page coordinates.
page_index: usizePage index on which the widget annotation is placed (0-based).
default_value: Option<String>Optional default value (/DV).
flags: u32Field flags (/Ff).
Trait Implementations§
Source§impl Clone for FormFieldSpec
impl Clone for FormFieldSpec
Source§fn clone(&self) -> FormFieldSpec
fn clone(&self) -> FormFieldSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FormFieldSpec
impl RefUnwindSafe for FormFieldSpec
impl Send for FormFieldSpec
impl Sync for FormFieldSpec
impl Unpin for FormFieldSpec
impl UnsafeUnpin for FormFieldSpec
impl UnwindSafe for FormFieldSpec
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