pub struct ElementSpec {
pub name: &'static str,
pub forms: &'static [Form],
pub required: bool,
pub aliases: &'static [&'static str],
pub doc: &'static str,
}Expand description
One valid sub-element of a node: the single declaration point for its name, accepted forms, and documentation.
Fields§
§name: &'static str§forms: &'static [Form]§required: bool§aliases: &'static [&'static str]Serde-alias spellings that satisfy this element (a REQUIRED element is present when its name OR any alias key is).
doc: &'static strTrait Implementations§
Source§impl Clone for ElementSpec
impl Clone for ElementSpec
impl Copy for ElementSpec
Auto Trait Implementations§
impl !RefUnwindSafe for ElementSpec
impl !UnwindSafe for ElementSpec
impl Freeze for ElementSpec
impl Send for ElementSpec
impl Sync for ElementSpec
impl Unpin for ElementSpec
impl UnsafeUnpin for ElementSpec
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