pub struct AuthReceipt {
pub schema_version: String,
pub protocol_version: String,
pub bindings_hash: String,
pub step: u64,
pub workspace_generation: u64,
pub outcome: AuthReceiptOutcome,
}Expand description
Proof-carrying auth check bound to one routing step and workspace authority.
This mirrors the RoutingReceipt shape: it is secret-free, versioned, and
binds a canonical AuthBindings digest to an explicit step and workspace
generation so a later offline verifier can reject tampered or replayed auth
evidence without any provider access.
Fields§
§schema_version: StringPublic schemas identifier, matching SCHEMA_VERSION.
protocol_version: StringAuthentication protocol identifier, matching AUTH_PROTOCOL_VERSION.
bindings_hash: StringContent-addressed digest of the bound AuthBindings.
step: u64Monotonic routing step this auth check served.
workspace_generation: u64Monotonic workspace generation this auth check served.
outcome: AuthReceiptOutcomeTerminal authorization outcome.
Implementations§
Source§impl AuthReceipt
impl AuthReceipt
Sourcepub fn new(
bindings: &AuthBindings,
step: u64,
workspace_generation: u64,
outcome: AuthReceiptOutcome,
) -> Result<Self, AuthError>
pub fn new( bindings: &AuthBindings, step: u64, workspace_generation: u64, outcome: AuthReceiptOutcome, ) -> Result<Self, AuthError>
Constructs a receipt, validating bindings and outcome consistency.
Trait Implementations§
Source§impl Clone for AuthReceipt
impl Clone for AuthReceipt
Source§fn clone(&self) -> AuthReceipt
fn clone(&self) -> AuthReceipt
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 AuthReceipt
impl Debug for AuthReceipt
Source§impl<'de> Deserialize<'de> for AuthReceipt
impl<'de> Deserialize<'de> for AuthReceipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthReceipt
Source§impl PartialEq for AuthReceipt
impl PartialEq for AuthReceipt
Source§impl Serialize for AuthReceipt
impl Serialize for AuthReceipt
impl StructuralPartialEq for AuthReceipt
Auto Trait Implementations§
impl Freeze for AuthReceipt
impl RefUnwindSafe for AuthReceipt
impl Send for AuthReceipt
impl Sync for AuthReceipt
impl Unpin for AuthReceipt
impl UnsafeUnpin for AuthReceipt
impl UnwindSafe for AuthReceipt
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