pub struct GenerateDensityImageSettings {
pub density_source: ImageDensitySource,
pub scale: usize,
}Expand description
Settings of density image generation.
Fields§
§density_source: ImageDensitySourceImage density source.
scale: usizeScale of the image (image is rescaled to: original size / scale).
Trait Implementations§
Source§impl Clone for GenerateDensityImageSettings
impl Clone for GenerateDensityImageSettings
Source§fn clone(&self) -> GenerateDensityImageSettings
fn clone(&self) -> GenerateDensityImageSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 GenerateDensityImageSettings
impl Debug for GenerateDensityImageSettings
Source§impl<'de> Deserialize<'de> for GenerateDensityImageSettings
impl<'de> Deserialize<'de> for GenerateDensityImageSettings
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
Auto Trait Implementations§
impl Freeze for GenerateDensityImageSettings
impl RefUnwindSafe for GenerateDensityImageSettings
impl Send for GenerateDensityImageSettings
impl Sync for GenerateDensityImageSettings
impl Unpin for GenerateDensityImageSettings
impl UnwindSafe for GenerateDensityImageSettings
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