#[non_exhaustive]pub struct XmlModel {
pub version: String,
pub identity: DocumentIdentity,
pub nodes: Vec<NodeDecl>,
pub ports: Vec<PortDecl>,
pub skipped: Vec<SkippedNode>,
}Expand description
Full XML model describing the GenICam schema version and all declared nodes.
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.version: StringCombined schema version extracted from the RegisterDescription attributes.
identity: DocumentIdentityThe camera the document describes, and the document’s own version.
nodes: Vec<NodeDecl>Flat list of node declarations present in the document.
ports: Vec<PortDecl>The <Port> declarations, in document order.
skipped: Vec<SkippedNode>Node elements that failed to parse and were skipped. Empty for a clean document.
Implementations§
Source§impl XmlModel
impl XmlModel
Sourcepub fn ignored(&self) -> Vec<IgnoredElement>
pub fn ignored(&self) -> Vec<IgnoredElement>
Every child element the parser read past without interpreting it,
node by node in document order, then the ports’. Empty when the
parser understood every element of every node it kept; see
IgnoredElement.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XmlModel
impl<'de> Deserialize<'de> for XmlModel
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
Auto Trait Implementations§
impl Freeze for XmlModel
impl RefUnwindSafe for XmlModel
impl Send for XmlModel
impl Sync for XmlModel
impl Unpin for XmlModel
impl UnsafeUnpin for XmlModel
impl UnwindSafe for XmlModel
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