pub struct TextFieldOptions {
pub default_value: String,
pub multiline: bool,
pub read_only: bool,
}Expand description
Options for creating a text field via Document::add_text_field.
Fields§
§default_value: StringInitial value of the field (/V entry). Default: empty string.
multiline: boolAllow multiline input (/Ff bit 12, “Multiline” flag). Default: false.
read_only: boolMark the field as read-only (/Ff bit 0, “ReadOnly” flag). Default: false.
Trait Implementations§
Source§impl Clone for TextFieldOptions
impl Clone for TextFieldOptions
Source§fn clone(&self) -> TextFieldOptions
fn clone(&self) -> TextFieldOptions
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 TextFieldOptions
impl Debug for TextFieldOptions
Source§impl Default for TextFieldOptions
impl Default for TextFieldOptions
Source§fn default() -> TextFieldOptions
fn default() -> TextFieldOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextFieldOptions
impl RefUnwindSafe for TextFieldOptions
impl Send for TextFieldOptions
impl Sync for TextFieldOptions
impl Unpin for TextFieldOptions
impl UnsafeUnpin for TextFieldOptions
impl UnwindSafe for TextFieldOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more