[][src]Struct raspicam::image::settings::ImageSettings

pub struct ImageSettings {
    pub width: &'static str,
    pub height: &'static str,
    pub rotation: &'static str,
    pub horizontal_flip: &'static str,
    pub vertical_flip: &'static str,
}

Settings for the image.

Example

use raspicam::image::camera_operations::click_image;
use raspicam::image::settings::ImageSettings;

let image_settings: ImageSettings = ImageSettings {
       width: "50",//or any value you want to modify
       ..Default::default()
   };
let test_image_settings: ImageSettings = ImageSettings {
        width: "50",
        height: "200",
        rotation: "180",
        horizontal_flip: "false",
        vertical_flip: "false",
};

assert_eq!(image_settings, test_image_settings);

Fields

width: &'static strheight: &'static strrotation: &'static strhorizontal_flip: &'static strvertical_flip: &'static str

Trait Implementations

impl Default for ImageSettings[src]

fn default() -> ImageSettings[src]

Initialize ImageSettings with the default values

Example

use raspicam::image::settings::ImageSettings;

let image_settings: ImageSettings = ImageSettings::default();
let test_image_settings: ImageSettings = ImageSettings {
        width: "200",
        height: "200",
        rotation: "180",
        horizontal_flip: "false",
        vertical_flip: "false",
};

assert_eq!(image_settings, test_image_settings);

impl PartialEq<ImageSettings> for ImageSettings[src]

impl Debug for ImageSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]