pub struct RenderRequest { /* private fields */ }Expand description
A validated one-format render request.
Implementations§
Source§impl RenderRequest
impl RenderRequest
Sourcepub fn builder(format: OutputFormat) -> RenderRequestBuilder
pub fn builder(format: OutputFormat) -> RenderRequestBuilder
Starts a validated request builder for exactly one output format.
Sourcepub const fn format(&self) -> OutputFormat
pub const fn format(&self) -> OutputFormat
Returns the single selected output format.
Sourcepub const fn include_background(&self) -> bool
pub const fn include_background(&self) -> bool
Returns whether the scene background is included.
Sourcepub const fn color_mode(&self) -> ColorMode
pub const fn color_mode(&self) -> ColorMode
Returns the selected color mode.
Sourcepub const fn frame_options(&self) -> &FrameOptions
pub const fn frame_options(&self) -> &FrameOptions
Returns the frame controls.
Sourcepub const fn metadata_options(&self) -> &MetadataOptions
pub const fn metadata_options(&self) -> &MetadataOptions
Returns the optional metadata controls.
Sourcepub const fn supplemental_assets(&self) -> &SupplementalAssets
pub const fn supplemental_assets(&self) -> &SupplementalAssets
Returns the owned supplemental assets.
Sourcepub const fn resource_limits(&self) -> &ResourceLimits
pub const fn resource_limits(&self) -> &ResourceLimits
Returns the semantic resource ceilings.
Sourcepub const fn pdf_options(&self) -> Option<&PdfOptions>
pub const fn pdf_options(&self) -> Option<&PdfOptions>
Returns PDF-specific options for a PDF request.
Trait Implementations§
Source§impl Clone for RenderRequest
impl Clone for RenderRequest
Source§impl Debug for RenderRequest
impl Debug for RenderRequest
Source§impl PartialEq for RenderRequest
impl PartialEq for RenderRequest
impl StructuralPartialEq for RenderRequest
Auto Trait Implementations§
impl Freeze for RenderRequest
impl RefUnwindSafe for RenderRequest
impl Send for RenderRequest
impl Sync for RenderRequest
impl Unpin for RenderRequest
impl UnsafeUnpin for RenderRequest
impl UnwindSafe for RenderRequest
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> ErasedDestructor for Twhere
T: 'static,
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.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.