#[non_exhaustive]pub struct DocumentIdentity {
pub vendor_name: String,
pub model_name: String,
pub version: String,
}Expand description
Which camera a document describes, and which revision of the document it
is: the <RegisterDescription> attributes of GenICam Standard v2.1.1 §2.7.
“The camera described is identified by the VendorName / ModelName pair”;
MajorVersion.MinorVersion.SubMinorVersion is the version of the XML file
itself, distinct from the schema version in XmlModel::version. Empty
strings where the document leaves an attribute out.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vendor_name: StringVendorName.
model_name: StringModelName.
version: StringMajorVersion.MinorVersion.SubMinorVersion, or empty when the
document declares none of the three.
Implementations§
Trait Implementations§
Source§impl Clone for DocumentIdentity
impl Clone for DocumentIdentity
Source§impl Debug for DocumentIdentity
impl Debug for DocumentIdentity
Source§impl Default for DocumentIdentity
impl Default for DocumentIdentity
Source§impl<'de> Deserialize<'de> for DocumentIdentity
impl<'de> Deserialize<'de> for DocumentIdentity
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 DocumentIdentity
Source§impl PartialEq for DocumentIdentity
impl PartialEq for DocumentIdentity
Source§impl Serialize for DocumentIdentity
impl Serialize for DocumentIdentity
impl StructuralPartialEq for DocumentIdentity
Auto Trait Implementations§
impl Freeze for DocumentIdentity
impl RefUnwindSafe for DocumentIdentity
impl Send for DocumentIdentity
impl Sync for DocumentIdentity
impl Unpin for DocumentIdentity
impl UnsafeUnpin for DocumentIdentity
impl UnwindSafe for DocumentIdentity
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