crucible-wire 0.10.1

What a crucible server and client share about the wire: operation descriptions, the error model, validation, timestamps and the JSON readers and writers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::PermissionInfo;

/// A `requires p on R by handler` clause, named so the handler can
/// discharge it (generated as a constant beside the operation). The handler
/// checks it through the Authorizer, or says it does not apply to the
/// request, before the operation's point of no return.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Obligation {
    /// The operation's shape id.
    pub operation: &'static str,
    /// The clause's position in the operation's requirements.
    pub index: u16,
    pub permission: &'static PermissionInfo,
}