What a crucible server and client share about the wire: operation descriptions, the error model, validation, timestamps and the JSON readers and writers
usesuper::Tier;/// One resource's permissions as a generated client publishes them
/// (`permissions::PERMISSIONS`), for a console's grant picker. Clients
/// never carry an internal permission.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]pubstructResourcePermissions{/// The authorization name grants store with each value: `inbox`.
pubresource_type:&'staticstr,
/// Sorted by value, deprecated aliases included.
pubpermissions:&'static [PermissionDescription],
}/// One permission in a client's registry.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]pubstructPermissionDescription{/// What grants store: `mail:send`.
pubvalue:&'staticstr,
/// The model's documentation for it, empty when it has none.
pubdescription:&'staticstr,
pubtier: Tier,
/// Whether a console may offer it for a grant: false for a bundle the
/// service's policy confers whole (`workspace:admin`).
pubgrantable:bool,
pubdeprecated:bool,
/// For a deprecated alias, the value it stands for.
pubalias_of:Option<&'staticstr>,
}