pub struct Microscope {
pub manufacturer: Option<String>,
pub model: Option<String>,
pub serial_number: Option<String>,
pub lot_number: Option<String>,
pub type: Option<MicroscopeType>,
}Fields§
§manufacturer: Option<String>§model: Option<String>§serial_number: Option<String>§lot_number: Option<String>§type: Option<MicroscopeType>Implementations§
Trait Implementations§
Source§impl Clone for Microscope
impl Clone for Microscope
Source§fn clone(&self) -> Microscope
fn clone(&self) -> Microscope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Microscope
impl Debug for Microscope
Source§impl Default for Microscope
impl Default for Microscope
Source§fn default() -> Microscope
fn default() -> Microscope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Microscope
impl<'de> Deserialize<'de> for Microscope
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 Microscope
impl PartialEq for Microscope
Source§fn eq(&self, other: &Microscope) -> bool
fn eq(&self, other: &Microscope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Microscope
impl Serialize for Microscope
impl StructuralPartialEq for Microscope
Auto Trait Implementations§
impl Freeze for Microscope
impl RefUnwindSafe for Microscope
impl Send for Microscope
impl Sync for Microscope
impl Unpin for Microscope
impl UnsafeUnpin for Microscope
impl UnwindSafe for Microscope
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