Skip to main content

Crate session_keys_macros_attribute

Crate session_keys_macros_attribute 

Source

Attribute Macros§

session_auth_or
Macro to check if the session (V1 or V2) or the original authority is the signer. Works with both Session and SessionV2 traits.

Derive Macros§

Session
Derive macro for the Session trait (V1) or SessionV2 trait. Auto-detects based on the field type:
SessionV2
Explicit V2 derive macro — same implementation as #[derive(Session)], provided for clarity when using SessionTokenV2.