Struct pdf_writer::writers::FieldAttributes
source · pub struct FieldAttributes<'a> { /* private fields */ }
Expand description
Writer for an PrintField attributes dictionary. PDF 1.6+
This struct is created by Attributes::field
.
Implementations§
source§impl<'a> FieldAttributes<'a>
impl<'a> FieldAttributes<'a>
sourcepub fn role(&mut self, role: FieldRole) -> &mut Self
pub fn role(&mut self, role: FieldRole) -> &mut Self
Write the /Role
attribute to determine the kind of form control.
sourcepub fn checked(&mut self, checked: FieldState) -> &mut Self
pub fn checked(&mut self, checked: FieldState) -> &mut Self
Write the /checked
attribute to set whether a radio button or checkbox
is checked.
sourcepub fn description(&mut self, desc: TextStr<'_>) -> &mut Self
pub fn description(&mut self, desc: TextStr<'_>) -> &mut Self
Write the /Desc
attribute to set the description of the form control.
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
Trait Implementations§
source§impl<'a> Deref for FieldAttributes<'a>
impl<'a> Deref for FieldAttributes<'a>
source§impl<'a> DerefMut for FieldAttributes<'a>
impl<'a> DerefMut for FieldAttributes<'a>
source§impl<'a, 'any> Rewrite<'a> for FieldAttributes<'any>
impl<'a, 'any> Rewrite<'a> for FieldAttributes<'any>
§type Output = FieldAttributes<'a>
type Output = FieldAttributes<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for FieldAttributes<'a>
impl<'a> RefUnwindSafe for FieldAttributes<'a>
impl<'a> Send for FieldAttributes<'a>
impl<'a> Sync for FieldAttributes<'a>
impl<'a> Unpin for FieldAttributes<'a>
impl<'a> !UnwindSafe for FieldAttributes<'a>
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