pub struct FormFieldText {
pub name: String,
pub rect: [f32; 4],
pub page_index: usize,
pub value: Option<String>,
pub max_length: Option<u32>,
pub multi_line: bool,
pub justification: FieldJustification,
pub default_appearance: Option<String>,
}Expand description
/FT /Tx — single-line or multi-line text field (§12.7.4.3).
Fields§
§name: String/T partial field name (must be unique within the form).
rect: [f32; 4]/Rect bounding box on the page (PDF coordinates).
page_index: usize0-based page index the widget lives on. Defaults to 0 (the first page).
value: Option<String>/V default value — the visible text.
max_length: Option<u32>/MaxLen maximum number of characters. None = unbounded.
multi_line: bool/Ff bit 12 — multi-line text input (§12.7.4.3 Table 228).
justification: FieldJustification/Q justification.
default_appearance: Option<String>/DA default appearance string. None ⇒
inherit AcroForm /DA "(/Helv 12 Tf 0 g)".
Trait Implementations§
Source§impl Clone for FormFieldText
impl Clone for FormFieldText
Source§fn clone(&self) -> FormFieldText
fn clone(&self) -> FormFieldText
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 moreAuto Trait Implementations§
impl Freeze for FormFieldText
impl RefUnwindSafe for FormFieldText
impl Send for FormFieldText
impl Sync for FormFieldText
impl Unpin for FormFieldText
impl UnsafeUnpin for FormFieldText
impl UnwindSafe for FormFieldText
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