pub struct ActionToken {Show 13 fields
pub iss: Box<str>,
pub k: Box<str>,
pub t: Box<str>,
pub c: Option<Value>,
pub p: Option<Box<str>>,
pub a: Option<Vec<Box<str>>>,
pub aud: Option<Box<str>>,
pub sub: Option<Box<str>>,
pub iat: Timestamp,
pub exp: Option<Timestamp>,
pub f: Option<Box<str>>,
pub v: Option<char>,
pub nonce: Option<Box<str>>,
}Expand description
Action tokens represent federated user actions as signed JWTs (ES384/P-384).
Actions are content-addressed: action_id = "a1~" + SHA256(token).
Field names are short (JWT claims) to minimize token size.
Fields§
§iss: Box<str>Issuer - id_tag of the action creator (e.g., “alice.example.com”)
k: Box<str>Key ID - identifier of the signing key used (for key rotation support)
t: Box<str>Type - action type with optional subtype (e.g., “POST”, “REACT:LIKE”, “CONN:DEL”)
c: Option<Value>Content - action-specific payload as JSON.
p: Option<Box<str>>Parent - action_id of parent action for TRUE HIERARCHY (threading).
a: Option<Vec<Box<str>>>Attachments - array of file IDs (content-addressed, e.g., “f1~abc123…”)
aud: Option<Box<str>>Audience - id_tag of the target recipient.
sub: Option<Box<str>>Subject - action_id or resource_id being referenced WITHOUT creating hierarchy.
iat: TimestampIssued At - Unix timestamp of action creation
exp: Option<Timestamp>Expires At - optional Unix timestamp for action expiration
f: Option<Box<str>>Flags - capability flags for this action
v: Option<char>Visibility - P=Public, V=Verified, 2=2ndDegree, F=Follower, C=Connected, None=Direct
nonce: Option<Box<str>>Nonce - Proof-of-work nonce for rate limiting (CONN actions only).
Trait Implementations§
Source§impl Clone for ActionToken
impl Clone for ActionToken
Source§fn clone(&self) -> ActionToken
fn clone(&self) -> ActionToken
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more