#[non_exhaustive]pub struct ImportOptions {
pub at: PageIndex,
pub viewer_preferences: bool,
}Expand description
How an import behaves.
#[non_exhaustive]; build one with ImportOptions::builder, or start
from ImportOptions::default and assign the fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.at: PageIndexWhere in the destination’s page list the imported pages go. Pages at and after this index shift up.
viewer_preferences: boolAlso copy the source catalog’s /ViewerPreferences.
Implementations§
Source§impl ImportOptions
impl ImportOptions
Sourcepub fn builder() -> ImportOptionsBuilder
pub fn builder() -> ImportOptionsBuilder
A builder over the defaults.
use pdfrum_edit::ImportOptions;
let options = ImportOptions::builder().at(3u32).viewer_preferences(true).build();
assert_eq!(u32::from(options.at), 3);
assert!(options.viewer_preferences);Trait Implementations§
Source§impl Clone for ImportOptions
impl Clone for ImportOptions
impl Copy for ImportOptions
Source§impl Debug for ImportOptions
impl Debug for ImportOptions
Source§impl Default for ImportOptions
impl Default for ImportOptions
impl Eq for ImportOptions
Source§impl PartialEq for ImportOptions
impl PartialEq for ImportOptions
impl StructuralPartialEq for ImportOptions
Auto Trait Implementations§
impl Freeze for ImportOptions
impl RefUnwindSafe for ImportOptions
impl Send for ImportOptions
impl Sync for ImportOptions
impl Unpin for ImportOptions
impl UnsafeUnpin for ImportOptions
impl UnwindSafe for ImportOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.