pub struct OpenFileOptions { /* private fields */ }
Expand description

Option flags for XmpFile::open_file().

Invoke by calling OpenFileOptions::default() and then calling methods on this struct to add options as needed.

Implementations

Open for read-only access.

See kXMPFiles_OpenForRead constant in C++ SDK.

Open for reading and writing.

See kXMPFiles_OpenForUpdate constant in C++ SDK.

Only the XMP is wanted.

This allows space/time optimizations.

See kXMPFiles_OpenOnlyXMP constant in C++ SDK.

Force use of the given handler (format).

Do not even verify the format.

See kXMPFiles_ForceGivenHandler constant in C++ SDK.

Be strict about only attempting to use the designated file handler.

Do not fall back to other handlers.

See kXMPFiles_OpenStrictly constant in C++ SDK.

Require the use of a smart handler.

See kXMPFiles_OpenUseSmartHandler constant in C++ SDK.

Force packet scanning.

Do not use a smart handler.

See kXMPFiles_OpenUsePacketScanning constant in C++ SDK.

Only packet scan files “known” to need scanning.

See kXMPFiles_OpenLimitedScanning constant in C++ SDK.

Attempt to repair a file opened for update.

Default is to not open (throw an exception).

See kXMPFiles_OpenRepairFile constant in C++ SDK.

When updating a file, spend the effort necessary to optimize file layout.

See kXMPFiles_OptimizeFileLayout constant in C++ SDK.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.