#[non_exhaustive]pub struct Operation {
pub repo: RepoId,
pub principal: Principal,
pub auth: Option<VerifiedAuth>,
pub write_grant: Option<Redacted>,
pub kind: OpKind,
pub leased_epoch: Option<u64>,
pub observed_epoch: Option<u64>,
pub business_now_ms: Option<i64>,
pub authz: AuthzFacts,
pub creation: Creation,
pub created: Creation,
}Expand description
A decoded request, ready for policy and storage.
Non-exhaustive: build it with Operation::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repo: RepoIdTarget repository.
principal: PrincipalWho the request acts as.
auth: Option<VerifiedAuth>The auth v2 authorization, for signed requests.
write_grant: Option<Redacted>Presented grant header, outside the auth v2 signed string.
kind: OpKindWhat the request does.
leased_epoch: Option<u64>Epoch leased for this D34 write; None under Single.
observed_epoch: Option<u64>Epoch observed in the Single-sharding read-ahead; Some(0) for an absent e key.
business_now_ms: Option<i64>Business clock value used to verify this request’s auth v2 envelope.
authz: AuthzFactsWhat the Authorizer established.
creation: CreationPre-admission observation: racing first writes may both observe creation.
created: CreationCreation committed by this operation; only one racing writer creates a row.
Implementations§
Trait Implementations§
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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