pub struct PageSource {Show 13 fields
pub preset: Option<String>,
pub width: Option<Length>,
pub height: Option<Length>,
pub orientation: Orientation,
pub margin: EdgeSource,
pub bleed: EdgeSource,
pub safe: EdgeSource,
pub crop_marks: bool,
pub collision: Option<CollisionSource>,
pub master: PageLayerSource,
pub first: PageLayerSource,
pub continuation: PageLayerSource,
pub last: PageLayerSource,
}Expand description
Page or canvas geometry and role-layer source.
Fields§
§preset: Option<String>Named preset, mutually exclusive with explicit dimensions.
width: Option<Length>Explicit width.
height: Option<Length>Explicit height.
orientation: OrientationOrientation applied after preset lookup.
margin: EdgeSourcePage margins.
bleed: EdgeSourceBleed outside the trim box.
safe: EdgeSourceSafe inset inside the page.
crop_marks: boolRequest crop marks from compatible exporters.
collision: Option<CollisionSource>Page collision policy inherited after the document policy.
master: PageLayerSourceLayer composited on every physical page.
first: PageLayerSourceLayer composited on the first page.
continuation: PageLayerSourceLayer composited only on middle pages.
last: PageLayerSourceLayer composited on the last page when the document has multiple pages.
Trait Implementations§
Source§impl Clone for PageSource
impl Clone for PageSource
Source§fn clone(&self) -> PageSource
fn clone(&self) -> PageSource
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 PageSource
impl Debug for PageSource
Source§impl<'de> Deserialize<'de> for PageSource
impl<'de> Deserialize<'de> for PageSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PageSource
impl PartialEq for PageSource
Source§impl Serialize for PageSource
impl Serialize for PageSource
impl StructuralPartialEq for PageSource
Auto Trait Implementations§
impl Freeze for PageSource
impl RefUnwindSafe for PageSource
impl Send for PageSource
impl Sync for PageSource
impl Unpin for PageSource
impl UnsafeUnpin for PageSource
impl UnwindSafe for PageSource
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.