pub struct Identity {
pub kind: IdentityKind,
pub name: String,
pub selector: String,
pub fields: Vec<String>,
pub refer: Option<String>,
}Expand description
An xs:unique, xs:key or xs:keyref declaration.
The selector and fields are XPath expressions over a restricted
subset of the language. They are kept as written and compiled by
oxml, whose engine is a superset of the subset XSD permits.
Fields§
§kind: IdentityKindWhich kind it is.
name: StringIts name, which a keyref refers to.
selector: StringThe xs:selector expression, choosing the nodes constrained.
fields: Vec<String>The xs:field expressions, forming a tuple per selected node.
refer: Option<String>For a keyref, the name of the constraint it refers to.
Trait Implementations§
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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