pub struct InviteSummary {
pub user: Option<String>,
pub display_name: Option<String>,
pub grants: Vec<String>,
pub expires_at: u64,
pub issued_by: String,
}Expand description
What an invite promises its holder, read by the join page (D57).
A copy rather than a borrow: the store’s lock is released before the page is rendered, and rendering must not be able to hold it.
Deliberately not the whole stored invite: secret_hash has no business
leaving the store, and issued_at says nothing a holder needs.
Fields§
§user: Option<String>The account name redemption will create, when the issuer fixed one at minting.
None is the ordinary case (D75): an open seat, whose holder
picks their own username on the page that redeems it.
display_name: Option<String>Readable name the account will carry (D46), when the issuer set one.
grants: Vec<String>The grants that account will be issued, as <repo> <level>.
expires_at: u64Unix seconds after which the invite stops working.
issued_by: StringWho minted it, so the holder can see whether they know that name.