#[non_exhaustive]pub struct Slot {
pub entity: String,
pub name: String,
pub optional: bool,
pub derived: bool,
pub min_len: Option<u64>,
}Expand description
One attribute position in a Part 21 record.
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.entity: StringThe entity that declares the attribute.
name: StringThe attribute name.
optional: boolTrue if the value may be $.
derived: boolTrue if a subtype redeclares the attribute as derived, so the value
is written *.
min_len: Option<u64>For an aggregate attribute with a literal lower bound, the minimum
number of elements, taking redeclarations and defined types into
account. None otherwise.
Trait Implementations§
impl Eq for Slot
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl UnwindSafe for Slot
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