pub struct FrameRenderRequestBuilder { /* private fields */ }Expand description
Builder for a validated one-format frame render request.
Implementations§
Source§impl FrameRenderRequestBuilder
impl FrameRenderRequestBuilder
Sourcepub fn include_background(self, include: bool) -> Self
pub fn include_background(self, include: bool) -> Self
Selects whether the scene background is included.
Sourcepub fn sizing(self, sizing: Sizing) -> Self
pub fn sizing(self, sizing: Sizing) -> Self
Selects explicit scale or downscale-only maximum-dimension sizing.
Sourcepub fn color_mode(self, color_mode: ColorMode) -> Self
pub fn color_mode(self, color_mode: ColorMode) -> Self
Selects light or dark color interpretation.
Sourcepub fn metadata_options(self, options: MetadataOptions) -> Self
pub fn metadata_options(self, options: MetadataOptions) -> Self
Replaces all optional artifact metadata controls.
Sourcepub fn supplemental_assets(self, assets: SupplementalAssets) -> Self
pub fn supplemental_assets(self, assets: SupplementalAssets) -> Self
Replaces all owned supplemental assets.
Sourcepub fn resource_limits(self, limits: ResourceLimits) -> Self
pub fn resource_limits(self, limits: ResourceLimits) -> Self
Replaces the validated semantic resource ceilings.
Sourcepub fn pdf_options(self, options: PdfOptions) -> Self
pub fn pdf_options(self, options: PdfOptions) -> Self
Replaces PDF-specific controls.
Sourcepub fn build(self) -> Result<FrameRenderRequest, RequestError>
pub fn build(self) -> Result<FrameRenderRequest, RequestError>
Validates and constructs the frame request.
§Errors
Returns a RequestError for the same disabled format, invalid
sizing and format options as RenderRequestBuilder::build.
Trait Implementations§
Source§impl Clone for FrameRenderRequestBuilder
impl Clone for FrameRenderRequestBuilder
Auto Trait Implementations§
impl Freeze for FrameRenderRequestBuilder
impl RefUnwindSafe for FrameRenderRequestBuilder
impl Send for FrameRenderRequestBuilder
impl Sync for FrameRenderRequestBuilder
impl Unpin for FrameRenderRequestBuilder
impl UnsafeUnpin for FrameRenderRequestBuilder
impl UnwindSafe for FrameRenderRequestBuilder
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.