pub struct CredentialAccessSubject {
pub human_principal: HumanPrincipalRef,
pub agent: AgentRef,
pub credential_ref: CredentialRef,
pub access_intent: AccessIntent,
pub policy: PolicyDescriptor,
pub notarization: NotarizationMetadata,
}Expand description
The credential subject for an agent-credential-access envelope.
Reuses HumanPrincipalRef (delegator) + AgentRef (subject) +
PolicyDescriptor (governing policy) + NotarizationMetadata
(decision metadata) from the message-send envelope. Adds two NEW
access-specific fields: credential_ref (which credential) and
access_intent (how the agent intends to use it).
Fields§
§human_principal: HumanPrincipalRefThe human principal who delegates access (= the user signing the consent).
agent: AgentRefThe agent requesting access.
credential_ref: CredentialRefOpaque identifier for the credential being accessed
(vendored CredentialRef above).
access_intent: AccessIntentIntent / duration of the access grant (OneShot / Session(ttl) /
Persistent(mandate_id)) — vendored AccessIntent above.
policy: PolicyDescriptorGoverning policy descriptor.
notarization: NotarizationMetadataNotarization decision metadata.
Trait Implementations§
Source§impl Clone for CredentialAccessSubject
impl Clone for CredentialAccessSubject
Source§impl Debug for CredentialAccessSubject
impl Debug for CredentialAccessSubject
Source§impl<'de> Deserialize<'de> for CredentialAccessSubject
impl<'de> Deserialize<'de> for CredentialAccessSubject
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 CredentialAccessSubject
Source§impl PartialEq for CredentialAccessSubject
impl PartialEq for CredentialAccessSubject
Source§impl Serialize for CredentialAccessSubject
impl Serialize for CredentialAccessSubject
impl StructuralPartialEq for CredentialAccessSubject
Auto Trait Implementations§
impl Freeze for CredentialAccessSubject
impl RefUnwindSafe for CredentialAccessSubject
impl Send for CredentialAccessSubject
impl Sync for CredentialAccessSubject
impl Unpin for CredentialAccessSubject
impl UnsafeUnpin for CredentialAccessSubject
impl UnwindSafe for CredentialAccessSubject
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