[−][src]Struct raspicam::image::settings::ImageSettings
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 str
height: &'static str
rotation: &'static str
horizontal_flip: &'static str
vertical_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]
fn eq(&self, other: &ImageSettings) -> bool
[src]
fn ne(&self, other: &ImageSettings) -> bool
[src]
impl Debug for ImageSettings
[src]
Auto Trait Implementations
impl Unpin for ImageSettings
impl Send for ImageSettings
impl Sync for ImageSettings
impl RefUnwindSafe for ImageSettings
impl UnwindSafe for ImageSettings
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,