pub struct TrqpQuery {
pub entity_id: String,
pub authority_id: String,
pub action: String,
pub resource: String,
pub time: Option<DateTime<Utc>>,
pub locator: Option<String>,
}Expand description
The TRQP 4-tuple every registry query is keyed on, plus the optional evaluation context.
Fields§
§entity_id: StringDID of the entity whose trust is being checked.
DID of the governing authority.
action: StringThe action being checked (e.g. issue, git.commit.sign).
resource: StringThe resource the action applies to.
time: Option<DateTime<Utc>>Evaluate as of this instant instead of “now”, when set.
locator: Option<String>Authority-defined record-location hint.
Implementations§
Source§impl TrqpQuery
impl TrqpQuery
Sourcepub fn new(
entity_id: impl Into<String>,
authority_id: impl Into<String>,
action: impl Into<String>,
resource: impl Into<String>,
) -> Self
pub fn new( entity_id: impl Into<String>, authority_id: impl Into<String>, action: impl Into<String>, resource: impl Into<String>, ) -> Self
A query over the TRQP 4-tuple, evaluated at the registry’s current time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrqpQuery
impl RefUnwindSafe for TrqpQuery
impl Send for TrqpQuery
impl Sync for TrqpQuery
impl Unpin for TrqpQuery
impl UnsafeUnpin for TrqpQuery
impl UnwindSafe for TrqpQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more