Trait pdfium_render::form_field::PdfFormFieldCommon

source ·
pub trait PdfFormFieldCommon {
    // Required methods
    fn name(&self) -> Option<String>;
    fn appearance_stream(&self) -> Option<String>;
    fn appearance_mode_value(
        &self,
        appearance_mode: PdfAppearanceMode,
    ) -> Option<String>;
}
Expand description

Functionality common to all PdfFormField objects, regardless of their PdfFormFieldType.

Required Methods§

source

fn name(&self) -> Option<String>

Returns the name of this PdfFormField, if any.

source

fn appearance_stream(&self) -> Option<String>

Returns the name of the currently set appearance stream for this PdfFormField, if any.

source

fn appearance_mode_value( &self, appearance_mode: PdfAppearanceMode, ) -> Option<String>

Returns the value currently set for the given appearance mode for this PdfFormField, if any.

Implementors§

source§

impl<'a, T> PdfFormFieldCommon for T
where T: PdfFormFieldPrivate<'a>,