Struct generic_camera::GenCamDescriptor
source · pub struct GenCamDescriptor {
pub id: usize,
pub name: String,
pub vendor: String,
pub model: String,
pub serial: Option<String>,
pub description: Option<String>,
}Expand description
A structure to hold information about a camera device.
Fields§
§id: usizeThe camera ID.
name: StringThe camera name.
vendor: StringThe camera vendor.
model: StringThe camera model.
serial: Option<String>The camera serial number.
description: Option<String>Camera description.
Trait Implementations§
source§impl Clone for GenCamDescriptor
impl Clone for GenCamDescriptor
source§fn clone(&self) -> GenCamDescriptor
fn clone(&self) -> GenCamDescriptor
Returns a copy 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 GenCamDescriptor
impl Debug for GenCamDescriptor
source§impl<'de> Deserialize<'de> for GenCamDescriptor
impl<'de> Deserialize<'de> for GenCamDescriptor
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
source§impl PartialEq for GenCamDescriptor
impl PartialEq for GenCamDescriptor
source§impl Serialize for GenCamDescriptor
impl Serialize for GenCamDescriptor
impl StructuralPartialEq for GenCamDescriptor
Auto Trait Implementations§
impl Freeze for GenCamDescriptor
impl RefUnwindSafe for GenCamDescriptor
impl Send for GenCamDescriptor
impl Sync for GenCamDescriptor
impl Unpin for GenCamDescriptor
impl UnwindSafe for GenCamDescriptor
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)