Skip to main content

OcUsage

Struct OcUsage 

Source
pub struct OcUsage {
Show 13 fields pub view: Option<bool>, pub print: Option<bool>, pub print_subtype: Option<String>, pub export: Option<bool>, pub zoom_min: Option<f64>, pub zoom_max: Option<f64>, pub language: Option<String>, pub language_preferred: bool, pub page_element: Option<String>, pub creator: Option<String>, pub creator_subtype: Option<String>, pub user_type: Option<String>, pub user_names: Vec<String>,
}
Expand description

An optional content usage dictionary (ISO 32000-1 §8.11.4.4, Table 102): what the group’s content is for. Every field is None, false or empty when its entry is absent.

Fields§

§view: Option<bool>

/View /ViewState: whether the group should be on when the document is opened on screen.

§print: Option<bool>

/Print /PrintState: whether the group should be on when printed.

§print_subtype: Option<String>

/Print /Subtype: the kind of print content, such as Trapping, PrintersMarks or Watermark.

§export: Option<bool>

/Export /ExportState: whether the group should be on when exported to a format without optional content.

§zoom_min: Option<f64>

/Zoom /min: the magnification the group is on from; the table’s default is 0.

§zoom_max: Option<f64>

/Zoom /max: the magnification below which the group is on; the table’s default is infinity.

§language: Option<String>

/Language /Lang: the content’s language tag, such as es-MX.

§language_preferred: bool

/Language /Preferred: whether the group is preferred on a partial language match; false by default.

§page_element: Option<String>

/PageElement /Subtype: HF (header or footer), FG (foreground), BG (background) or L (logo).

§creator: Option<String>

/CreatorInfo /Creator: the application that created the group.

§creator_subtype: Option<String>

/CreatorInfo /Subtype: the kind of content, such as Artwork or Technical.

§user_type: Option<String>

/User /Type: Ind (individual), Ttl (title) or Org (organization).

§user_names: Vec<String>

/User /Name: the names, one string or an array of strings.

Trait Implementations§

Source§

impl Clone for OcUsage

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OcUsage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OcUsage

Source§

fn default() -> Self

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

impl PartialEq for OcUsage

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for OcUsage

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.