pub enum DecorationElement {
Header(Box<Header>),
Footer(Box<Footer>),
}Variants§
Trait Implementations§
Source§impl Clone for DecorationElement
impl Clone for DecorationElement
Source§fn clone(&self) -> DecorationElement
fn clone(&self) -> DecorationElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecorationElement
impl Debug for DecorationElement
Source§impl From<Header> for DecorationElement
impl From<Header> for DecorationElement
Source§impl HasChildren<DecorationElement> for Decoration
impl HasChildren<DecorationElement> for Decoration
fn with_children(children: Vec<DecorationElement>) -> Decoration
fn children(&self) -> &Vec<DecorationElement>
fn children_mut(&mut self) -> &mut Vec<DecorationElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl JsonSchema for DecorationElement
impl JsonSchema for DecorationElement
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DecorationElement
impl PartialEq for DecorationElement
Source§impl Serialize for DecorationElement
impl Serialize for DecorationElement
impl StructuralPartialEq for DecorationElement
Auto Trait Implementations§
impl Freeze for DecorationElement
impl RefUnwindSafe for DecorationElement
impl Send for DecorationElement
impl Sync for DecorationElement
impl Unpin for DecorationElement
impl UnwindSafe for DecorationElement
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