pub struct PdfAExtPropertyWriter<'a, 'n: 'a> { /* private fields */ }
Expand description
Write a property of an extension schema.
Created by PdfAExtPropertiesWriter::add_property
.
Implementations§
source§impl<'a, 'n: 'a> PdfAExtPropertyWriter<'a, 'n>
impl<'a, 'n: 'a> PdfAExtPropertyWriter<'a, 'n>
sourcepub fn name(&mut self, name: &str) -> &mut Self
pub fn name(&mut self, name: &str) -> &mut Self
Write the pdfaProperty:name
property.
Name of the property.
sourcepub fn value_type(&mut self, value_type: &str) -> &mut Self
pub fn value_type(&mut self, value_type: &str) -> &mut Self
Write the pdfaProperty:valueType
property.
The value type of the property. Shall either be defined in the XMP specification or in the extension schema.
sourcepub fn category(&mut self, internal: bool) -> &mut Self
pub fn category(&mut self, internal: bool) -> &mut Self
Write the pdfaProperty:category
property.
Whether the property is generated through the document’s contents
(internal
is true) or input by the user (internal
is false).
sourcepub fn description(&mut self, description: &str) -> &mut Self
pub fn description(&mut self, description: &str) -> &mut Self
Write the pdfaProperty:description
property.
Description of the property.
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 PdfAExtPropertyWriter<'a, 'n>
impl<'a, 'n> Deref for PdfAExtPropertyWriter<'a, 'n>
Auto Trait Implementations§
impl<'a, 'n> Freeze for PdfAExtPropertyWriter<'a, 'n>
impl<'a, 'n> RefUnwindSafe for PdfAExtPropertyWriter<'a, 'n>
impl<'a, 'n> Send for PdfAExtPropertyWriter<'a, 'n>
impl<'a, 'n> Sync for PdfAExtPropertyWriter<'a, 'n>
impl<'a, 'n> Unpin for PdfAExtPropertyWriter<'a, 'n>
impl<'a, 'n> !UnwindSafe for PdfAExtPropertyWriter<'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