ShapeAttribute

Type Alias ShapeAttribute 

Source
pub type ShapeAttribute = Attr;
Expand description

An attribute that can be applied to a shape. This is now just an alias for ExtensionAttr - all attributes use the same representation.

Aliased Type§

pub struct ShapeAttribute {
    pub ns: Option<&'static str>,
    pub key: &'static str,
    pub data: OxRef<'static>,
}

Fields§

§ns: Option<&'static str>

The namespace (e.g., Some(“orm”) in #[facet(orm::primary_key)]). None for builtin attributes like #[facet(sensitive)].

§key: &'static str

The key (e.g., “primary_key” in #[facet(orm::primary_key)])

§data: OxRef<'static>

Data stored by the attribute