pub struct DesignMeta {
pub intent: Option<String>,
pub allow: Vec<String>,
}Expand description
Optional design metadata attached to a Spec for lint and pattern enforcement.
intent declares the page archetype (one of the seven projection intents:
browse, focus, collect, process, summarize, analyze, track). An
unknown string produces a warning finding during lint — it never fails spec parse.
allow lists rule ids to suppress page-wide. Neither field affects rendering or
spec validation.
Fields§
§intent: Option<String>Page archetype, one of the seven projection intents. Unknown strings produce a warning finding; they never fail spec parse.
allow: Vec<String>Rule ids to suppress for this page. Unknown ids produce a warning finding.
Trait Implementations§
Source§impl Clone for DesignMeta
impl Clone for DesignMeta
Source§fn clone(&self) -> DesignMeta
fn clone(&self) -> DesignMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DesignMeta
impl Debug for DesignMeta
Source§impl<'de> Deserialize<'de> for DesignMeta
impl<'de> Deserialize<'de> for DesignMeta
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
Source§impl JsonSchema for DesignMeta
impl JsonSchema for DesignMeta
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 DesignMeta
impl PartialEq for DesignMeta
Source§fn eq(&self, other: &DesignMeta) -> bool
fn eq(&self, other: &DesignMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DesignMeta
impl Serialize for DesignMeta
impl StructuralPartialEq for DesignMeta
Auto Trait Implementations§
impl Freeze for DesignMeta
impl RefUnwindSafe for DesignMeta
impl Send for DesignMeta
impl Sync for DesignMeta
impl Unpin for DesignMeta
impl UnsafeUnpin for DesignMeta
impl UnwindSafe for DesignMeta
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