pub struct TypeDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub applicable_occurrence: Option<&'a str>,
pub maps_or_identification: Option<Slot6<'a>>,
pub tag_or_long_description: Option<&'a str>,
pub fallback: Option<&'a str>,
}Expand description
Attributes shared by every type definition.
tag_or_long_description and maps_or_identification occupy slots
7 and 6, whose meaning depends on Family. Naming them for both
readings keeps a caller from assuming the element-type reading on a
resource type, where it would file a tag as a description.
Fields§
§name: Option<&'a str>Name.
description: Option<&'a str>Description.
applicable_occurrence: Option<&'a str>ApplicableOccurrence, slot 4.
maps_or_identification: Option<Slot6<'a>>Slot 6: RepresentationMaps refs, or Identification text.
tag_or_long_description: Option<&'a str>Slot 7: Tag on element types, LongDescription otherwise.
fallback: Option<&'a str>Slot 8: the USERDEFINED fallback. Required when the
predefined type is USERDEFINED.
Trait Implementations§
impl<'a> Copy for TypeDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeDraft<'a>
impl<'a> RefUnwindSafe for TypeDraft<'a>
impl<'a> Send for TypeDraft<'a>
impl<'a> Sync for TypeDraft<'a>
impl<'a> Unpin for TypeDraft<'a>
impl<'a> UnsafeUnpin for TypeDraft<'a>
impl<'a> UnwindSafe for TypeDraft<'a>
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