pub struct Camera2Options {
pub max_images: Option<u32>,
pub request_template: Option<Camera2RequestTemplate>,
}Expand description
Values for Camera2Options.
Fields§
§max_images: Option<u32>The max images value.
request_template: Option<Camera2RequestTemplate>The request template value.
Implementations§
Source§impl Camera2Options
impl Camera2Options
Sourcepub fn max_images(self, count: u32) -> Self
pub fn max_images(self, count: u32) -> Self
Performs the max_images operation.
Sourcepub fn request_template(self, template: Camera2RequestTemplate) -> Self
pub fn request_template(self, template: Camera2RequestTemplate) -> Self
Performs the request_template operation.
Trait Implementations§
Source§impl Clone for Camera2Options
impl Clone for Camera2Options
Source§impl Debug for Camera2Options
impl Debug for Camera2Options
Source§impl Default for Camera2Options
impl Default for Camera2Options
Source§impl<'de> Deserialize<'de> for Camera2Options
impl<'de> Deserialize<'de> for Camera2Options
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
impl Eq for Camera2Options
Source§impl From<Camera2Options> for BackendOptions
impl From<Camera2Options> for BackendOptions
Source§fn from(value: Camera2Options) -> Self
fn from(value: Camera2Options) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Camera2Options
impl PartialEq for Camera2Options
Source§impl Serialize for Camera2Options
impl Serialize for Camera2Options
impl StructuralPartialEq for Camera2Options
Auto Trait Implementations§
impl Forget for Camera2Options
impl Freeze for Camera2Options
impl RefUnwindSafe for Camera2Options
impl Send for Camera2Options
impl Sync for Camera2Options
impl Unpin for Camera2Options
impl UnsafeUnpin for Camera2Options
impl UnwindSafe for Camera2Options
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