Skip to main content

property_key

Function property_key 

Source
pub fn property_key(
    component: &str,
    property: &str,
    configured: Option<&str>,
    lookup: impl Fn(&str) -> Option<String>,
) -> String
Expand description

The key a session-backed property persists under.

A property with a configured key uses it, with {path} placeholders replaced from lookup. A property without one uses lw{crc32}, so two components with a property of the same name do not share a value.