pub struct Settings {
pub result_mode: i32,
pub resolution: UVector2,
pub center: Vector2,
pub quality: i32,
pub farm_quality: i32,
pub samples: i32,
pub gui: bool,
pub inverse_y: bool,
pub use_gpu_if_available: bool,
pub filter: Filter,
pub timeout: Option<u32>,
pub device_name: Option<String>,
}Expand description
Rendering settings
Fields§
§result_mode: i32Render mode to use as output
resolution: UVector2Resolution of the render (width, height)
center: Vector2Center point of the render
quality: i32Quality level for rendering
farm_quality: i32Quality level for farm rendering (background processing)
samples: i32Number of samples to use for rendering
gui: boolFlag indicating whether GUI components should be used
inverse_y: boolFlag indicating whether to invert the Y axis
use_gpu_if_available: boolFlag indicating whether to use GPU if available
filter: FilterSettings to specify how to render the filter
timeout: Option<u32>Stop rendering after this time
device_name: Option<String>Device name used for rendering
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn result_mode(&self) -> ResultMode
pub fn result_mode(&self) -> ResultMode
Returns the enum value of result_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_result_mode(&mut self, value: ResultMode)
pub fn set_result_mode(&mut self, value: ResultMode)
Sets result_mode to the provided enum value.
Sourcepub fn quality(&self) -> Quality
pub fn quality(&self) -> Quality
Returns the enum value of quality, or the default if the field is set to an invalid enum value.
Sourcepub fn set_quality(&mut self, value: Quality)
pub fn set_quality(&mut self, value: Quality)
Sets quality to the provided enum value.
Sourcepub fn farm_quality(&self) -> Quality
pub fn farm_quality(&self) -> Quality
Returns the enum value of farm_quality, or the default if the field is set to an invalid enum value.
Sourcepub fn set_farm_quality(&mut self, value: Quality)
pub fn set_farm_quality(&mut self, value: Quality)
Sets farm_quality to the provided enum value.
Sourcepub fn timeout(&self) -> u32
pub fn timeout(&self) -> u32
Returns the value of timeout, or the default value if timeout is unset.
Sourcepub fn device_name(&self) -> &str
pub fn device_name(&self) -> &str
Returns the value of device_name, or the default value if device_name is unset.
Trait Implementations§
Source§impl Message for Settings
impl Message for Settings
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.