xmp_writer

Struct ResourceRefWriter

source
pub struct ResourceRefWriter<'a, 'n: 'a> { /* private fields */ }
Expand description

Writer for a reference to a resource.

Created by XmpWriter::derived_from, XmpWriter::managed_from, or ResourceRefsWriter::add_ref.

Implementations§

source§

impl<'a, 'n: 'a> ResourceRefWriter<'a, 'n>

source

pub fn alternate_paths<'b>( &mut self, paths: impl IntoIterator<Item = &'b str>, ) -> &mut Self

Write the stRef:alternatePaths property.

Fallback paths to the resource.

source

pub fn document_id(&mut self, id: &str) -> &mut Self

Write the stRef:documentID property.

The XmpWriter::document_id of the referenced resource.

source

pub fn file_path(&mut self, path: &str) -> &mut Self

Write the stRef:filePath property.

The path or URL to the resource.

source

pub fn instance_id(&mut self, id: &str) -> &mut Self

Write the stRef:instanceID property.

The XmpWriter::instance_id of the referenced resource.

source

pub fn last_modify_date(&mut self, date: DateTime) -> &mut Self

Write the stRef:lastModifyDate property.

The last modification date of the resource. See ResourceEventWriter::when.

source

pub fn manager(&mut self, manager: &str) -> &mut Self

Write the stRef:manager property.

The name of the application that manages the resource. See XmpWriter::manager.

source

pub fn manager_variant(&mut self, variant: &str) -> &mut Self

Write the stRef:managerVariant property.

The variant of the application that manages the resource. See XmpWriter::manager_variant.

source

pub fn manage_to(&mut self, uri: &str) -> &mut Self

Write the stRef:manageTo property.

The URI of the resource prior to being managed. See XmpWriter::manage_to.

source

pub fn manage_ui(&mut self, uri: &str) -> &mut Self

Write the stRef:manageUI property.

An URI to the user interface of the application that manages the resource. See XmpWriter::manage_ui.

source

pub fn mask_markers(&mut self, markers: MaskMarkers) -> &mut Self

Write the stRef:maskMarkers property.

Whether to process markers for resources in the XmpWriter::ingredients array.

source

pub fn part_mapping(&mut self, mapping: &str) -> &mut Self

Write the stRef:partMapping property.

The name or URI of a mapping function to map fromPart to toPart.

source

pub fn rendition_class(&mut self, rendition: RenditionClass<'_>) -> &mut Self

Write the stRef:renditionClass property.

The rendition class of the referenced resource. See XmpWriter::rendition_class.

source

pub fn rendition_params(&mut self, params: &str) -> &mut Self

Write the stRef:renditionParams property.

The rendition parameters of the referenced resource. See XmpWriter::rendition_params.

source

pub fn to_part(&mut self, part: &str) -> &mut Self

Write the stRef:toPart property.

For a resource in a XmpWriter::ingredients array, the part of the root resource that the the ingredient corresponds to.

source

pub fn version_id(&mut self, id: &str) -> &mut Self

Write the stRef:versionID property.

The referenced resource’s version ID. See XmpWriter::version_id.

Methods from Deref<Target = Struct<'a, 'n>>§

source

pub fn element( &mut self, name: &'a str, namespace: Namespace<'n>, ) -> Element<'_, 'n>

Start writing a property in the struct.

source

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 ResourceRefWriter<'a, 'n>

source§

type Target = Struct<'a, 'n>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'a, 'n> DerefMut for ResourceRefWriter<'a, 'n>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.

Auto Trait Implementations§

§

impl<'a, 'n> Freeze for ResourceRefWriter<'a, 'n>

§

impl<'a, 'n> RefUnwindSafe for ResourceRefWriter<'a, 'n>

§

impl<'a, 'n> Send for ResourceRefWriter<'a, 'n>

§

impl<'a, 'n> Sync for ResourceRefWriter<'a, 'n>

§

impl<'a, 'n> Unpin for ResourceRefWriter<'a, 'n>

§

impl<'a, 'n> !UnwindSafe for ResourceRefWriter<'a, 'n>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.