pub struct PdfAExtTypeFieldWriter<'a, 'n: 'a> { /* private fields */ }
Expand description
Write a field of an extension schema value type.
Created by PdfAExtTypeFieldsWriter::add_field
.
Implementations§
source§impl<'a, 'n: 'a> PdfAExtTypeFieldWriter<'a, 'n>
impl<'a, 'n: 'a> PdfAExtTypeFieldWriter<'a, 'n>
sourcepub fn name(&mut self, name: &str) -> &mut Self
pub fn name(&mut self, name: &str) -> &mut Self
Write the pdfaField:name
property.
Name of the field in the type.
sourcepub fn value_type(&mut self, value_type: &str) -> &mut Self
pub fn value_type(&mut self, value_type: &str) -> &mut Self
Write the pdfaField:valueType
property.
The value type of the field. Shall either be defined in the XMP specification or in the extension schema.
sourcepub fn description(&mut self, description: &str) -> &mut Self
pub fn description(&mut self, description: &str) -> &mut Self
Write the pdfaField:category
property.
Human-readable description of the field in the type.
Methods from Deref<Target = Struct<'a, 'n>>§
sourcepub fn element(
&mut self,
name: &'a str,
namespace: Namespace<'n>,
) -> Element<'_, 'n>
pub fn element( &mut self, name: &'a str, namespace: Namespace<'n>, ) -> Element<'_, 'n>
Start writing a property in the struct.
sourcepub fn element_with_attrs<'b>(
&mut self,
name: &'a str,
namespace: Namespace<'n>,
attrs: impl IntoIterator<Item = (&'b str, &'b str)>,
) -> Element<'_, 'n>
pub fn element_with_attrs<'b>( &mut self, name: &'a str, namespace: Namespace<'n>, attrs: impl IntoIterator<Item = (&'b str, &'b str)>, ) -> Element<'_, 'n>
Start writing a property with attributes in the struct.
Trait Implementations§
source§impl<'a, 'n> Deref for PdfAExtTypeFieldWriter<'a, 'n>
impl<'a, 'n> Deref for PdfAExtTypeFieldWriter<'a, 'n>
Auto Trait Implementations§
impl<'a, 'n> Freeze for PdfAExtTypeFieldWriter<'a, 'n>
impl<'a, 'n> RefUnwindSafe for PdfAExtTypeFieldWriter<'a, 'n>
impl<'a, 'n> Send for PdfAExtTypeFieldWriter<'a, 'n>
impl<'a, 'n> Sync for PdfAExtTypeFieldWriter<'a, 'n>
impl<'a, 'n> Unpin for PdfAExtTypeFieldWriter<'a, 'n>
impl<'a, 'n> !UnwindSafe for PdfAExtTypeFieldWriter<'a, 'n>
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