pub struct AdmissionFences {
pub principal_id: String,
pub covering_grants: Vec<OperationGrant>,
pub target_scope: String,
pub invocation_scope: Option<String>,
pub expected_graph_revision: Option<u64>,
pub expected_target_generation: Option<u64>,
}Expand description
The admission predicates record_admission re-evaluates under the same
lock that writes the admission. What the proxy checked before opening
the transaction is a preview; these fences are the authoritative read.
Fields§
§principal_id: StringPrincipal the operation was authorized as.
covering_grants: Vec<OperationGrant>Every grant the principal holds that covers the required grant. An empty set marks implicit local-admin authority, which grants cannot revoke; a non-empty set admits only while at least one entry stays unrevoked.
target_scope: StringStop/pause fence key for the operation’s scope.
invocation_scope: Option<String>Invocation-level stop key (node/invocation) when the operation
addresses a single invocation.
expected_graph_revision: Option<u64>Caller’s expected graph definition revision, when supplied.
expected_target_generation: Option<u64>Caller’s expected target lifecycle generation, when supplied.
Trait Implementations§
Source§impl Clone for AdmissionFences
impl Clone for AdmissionFences
Source§fn clone(&self) -> AdmissionFences
fn clone(&self) -> AdmissionFences
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdmissionFences
impl Debug for AdmissionFences
Source§impl Default for AdmissionFences
impl Default for AdmissionFences
Source§fn default() -> AdmissionFences
fn default() -> AdmissionFences
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for AdmissionFences
impl Freeze for AdmissionFences
impl Move for AdmissionFences
impl RefUnwindSafe for AdmissionFences
impl Send for AdmissionFences
impl Sync for AdmissionFences
impl Unpin for AdmissionFences
impl UnsafeUnpin for AdmissionFences
impl UnwindSafe for AdmissionFences
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