pub struct NestingConstraint {
pub max_section_depth: Option<u32>,
pub max_inline_depth: Option<u32>,
pub no_self_nesting: Vec<String>,
}Expand description
Nesting constraints
Fields§
§max_section_depth: Option<u32>Maximum section nesting depth
max_inline_depth: Option<u32>Maximum inline nesting depth
no_self_nesting: Vec<String>Elements that cannot self-nest
Trait Implementations§
Source§impl Clone for NestingConstraint
impl Clone for NestingConstraint
Source§fn clone(&self) -> NestingConstraint
fn clone(&self) -> NestingConstraint
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 NestingConstraint
impl Debug for NestingConstraint
Source§impl Default for NestingConstraint
impl Default for NestingConstraint
Source§fn default() -> NestingConstraint
fn default() -> NestingConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NestingConstraint
impl<'de> Deserialize<'de> for NestingConstraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NestingConstraint
impl RefUnwindSafe for NestingConstraint
impl Send for NestingConstraint
impl Sync for NestingConstraint
impl Unpin for NestingConstraint
impl UnwindSafe for NestingConstraint
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