pub struct LayerUsage {
pub creator_info: Option<CreatorInfo>,
pub language: Option<LanguageUsage>,
pub export: Option<ExportUsage>,
pub zoom: Option<ZoomUsage>,
pub print: Option<PrintUsage>,
pub view: Option<ViewUsage>,
pub user: Option<UserUsage>,
pub page_element: Option<PageElementSubtype>,
}Expand description
Hints from the OCG /Usage sub-dict.
Every field is optional — a layer with no /Usage produces a
fully-None value. Render-intent helpers in crate::layers
(e.g. layer_set_for) turn these hints into automatic visibility
adjustments under View / Print / Export intents.
Fields§
§creator_info: Option<CreatorInfo>/CreatorInfo sub-dict — application that authored the layer.
language: Option<LanguageUsage>/Language sub-dict — language tag and “preferred” flag.
export: Option<ExportUsage>/Export sub-dict — visibility under export intent.
zoom: Option<ZoomUsage>/Zoom sub-dict — min/max zoom range in which the layer is
visible.
print: Option<PrintUsage>/Print sub-dict — visibility and subtype hint under print
intent.
view: Option<ViewUsage>/View sub-dict — visibility under interactive view intent.
user: Option<UserUsage>/User sub-dict — user/group ownership.
page_element: Option<PageElementSubtype>/PageElement sub-dict — role on the page (header, footer,
foreground, background, logo).
Trait Implementations§
Source§impl Clone for LayerUsage
impl Clone for LayerUsage
Source§fn clone(&self) -> LayerUsage
fn clone(&self) -> LayerUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayerUsage
impl Debug for LayerUsage
Source§impl Default for LayerUsage
impl Default for LayerUsage
Source§fn default() -> LayerUsage
fn default() -> LayerUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayerUsage
impl RefUnwindSafe for LayerUsage
impl Send for LayerUsage
impl Sync for LayerUsage
impl Unpin for LayerUsage
impl UnsafeUnpin for LayerUsage
impl UnwindSafe for LayerUsage
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more