FieldAttribute

Type Alias FieldAttribute 

Source
pub type FieldAttribute = Attr;
Expand description

An attribute that can be set on a field. This is now just an alias for ExtensionAttr - all attributes use the same representation.

Aliased Type§

pub struct FieldAttribute {
    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