pub struct ReceiptAttributionMetadata {
pub subject_key: String,
pub issuer_key: String,
pub delegation_depth: u32,
pub grant_index: Option<u32>,
}Expand description
Universal receipt-side attribution for capability context.
This metadata gives downstream analytics a deterministic local join path from a receipt to the capability subject and, when available, the matched grant within the capability scope.
Fields§
§subject_key: StringHex-encoded subject public key of the capability holder.
issuer_key: StringHex-encoded issuer public key of the capability issuer.
delegation_depth: u32Delegation depth of the capability used for this receipt.
grant_index: Option<u32>Index of the matched grant when the request resolved to a specific grant.
Trait Implementations§
Source§impl Clone for ReceiptAttributionMetadata
impl Clone for ReceiptAttributionMetadata
Source§fn clone(&self) -> ReceiptAttributionMetadata
fn clone(&self) -> ReceiptAttributionMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ReceiptAttributionMetadata
impl Debug for ReceiptAttributionMetadata
Source§impl<'de> Deserialize<'de> for ReceiptAttributionMetadata
impl<'de> Deserialize<'de> for ReceiptAttributionMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReceiptAttributionMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReceiptAttributionMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ReceiptAttributionMetadata
impl Serialize for ReceiptAttributionMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ReceiptAttributionMetadata
impl StructuralPartialEq for ReceiptAttributionMetadata
Auto Trait Implementations§
impl Freeze for ReceiptAttributionMetadata
impl RefUnwindSafe for ReceiptAttributionMetadata
impl Send for ReceiptAttributionMetadata
impl Sync for ReceiptAttributionMetadata
impl Unpin for ReceiptAttributionMetadata
impl UnsafeUnpin for ReceiptAttributionMetadata
impl UnwindSafe for ReceiptAttributionMetadata
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